02.12.2012, 19:57
so i want to make a /enter command for many locations, Banks, LSPD, shops etc, But i only want to use the one command.. How would i go about this? So far my OnPlayerCommandText is..
pawn Код:
if(!strcmp("/enter",cmdtext))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, -323.44,2675.54,63.67))
{
SetPlayerInterior(playerid,6);
SetPlayerPos(playerid,246.783996,63.900199,1003.640625);
}
else(SendClientMessage(playerid, 0xFFFFFFFF, "You are not near any enterable doors!"));
}
return 1;
}