15.02.2010, 15:00
pawn Код:
return 1;
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/test", cmdtext, true, 10) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), 1234.16978, 1252.26287, 6126.62168);
} else {
SetPlayerPos(playerid, 1234.16978, 1252.26287, 6126.62168);
}
return 1; // end
}
return 0;
}