07.03.2010, 02:12
Hi ,
I have setup a checkpoint to which when someone enters it sends clientmessage . The message tells the person to use /destroycar , but how can i make it so that you have to be in that checkpoint for the command to work.
An example would be great.
Here is the current command
I have setup a checkpoint to which when someone enters it sends clientmessage . The message tells the person to use /destroycar , but how can i make it so that you have to be in that checkpoint for the command to work.
An example would be great.
Here is the current command
Код:
if(!strcmp("/destroycar", cmdtext, true))
{
if(gTeam[playerid] != TEAM_STAGE25) {
SendClientMessage(playerid,0xFFFFFFAA,"You are not part of the team!");
return 1;
}
DestroyVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid,0xFFFFFFAA," You are a worker , The car has been destroyed");
return 1;
}


No 'else' needed, not in his code, nor mine.