20.04.2009, 17:29
This is how it should be:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[128], idx;
if(!strcmp("/blah", cmdtext, true))
{
if(PlayerToPoint(2.0,1633.2205,-1019.4009,23.8984))
{
SendClientMessage(playerid, COLOR_YELLOW, "blah blah blah blah !");
GivePlayerWeapon(playerid,3,1);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1602.8052,-1009.7886,23.9063);
GameTextForPlayer(playerid,"~w~BLAH BLAH ~y~BLAH BLAH ",5000,5);
}
return 1;
}
return 0;
}