07.04.2010, 08:59
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/yourcmd", cmdtext, false))
{
//bla bla bla
return 1;
}
if(!strcmp("/anothercmd", cmdtext, false))
{
//more bla bla bla
return 1;
}
return 0; //make absolute sure this is the last line in OnPlayerCommandText.
}
EDIT:
Quote:
Originally Posted by [TW
randomguy ]
Код:
if(strcmp(cmd, "/moutbike", true) == 0) { GetPlayerPos(playerid, x, y, z); GetPlayerFacingAngle(playerid, ang); CreateVehicle(510, x+1, y+1, z+1, 0, 0, 0, 600); SetVehicleZAngle(VehicleID, ang); return 1; } |