Untitled
public text v1 · immutableif (strcmp(cmdtext, "/open", true)==0) // compares the commandtext to pdopenls, if its true:
{
if(gTeam[playerid] == TEAM_NAME) // it checks if the gTeam of the playerid is equal to 1. If true:
{
MoveObject(GATENAMEID,x,y,z, 2.5); // Move the object
SendClientMessage(playerid, COLOR_YELLOW," Gate opened"); // sending message
return 1;
}
}