31.10.2010, 14:26
sorry for double post but i actually found why, you had a missing bracket and a missing ; semicolon, and other thing, always add return to your command or it will say SERVER: Unknown command
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/skatepark", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,1893.8850,-1388.2507,13.5703);
return SendClientMessage(playerid, COLOR_BLACK , "Have fun in skatepark!");
}
if (strcmp("/commands", cmdtext, true, 10) == 0)
{
return SendClientMessage(playerid,COLOR_YELLOW, "/skatepark");
}
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
return SetPlayerHealth(playerid,0.0);
}
return 0;
}