All pastes #917872 Raw Edit

Stuff

public text v1 · immutable
#917872 ·published 2008-02-25 19:22 UTC
rendered paste body
if (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;
   }    
}