24.03.2013, 03:32
Ah, I have a simple problem, but I don't know how to script with ZCMD.
How to change this to ZCMD?
How to change this to ZCMD?
pawn Код:
if (strcmp("/ls", cmdtext, true, 10) == 0)
{
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new iVeh = GetPlayerVehicleID(playerid);
SetVehiclePos(iVeh,2508.7432,-1673.0253,13.3804);
SetVehicleZAngle(iVeh, 0);
}
else
{
SetPlayerPos(playerid,2526.9399,-1667.6604,15.1689);
}
SendClientMessage(playerid, 0x00FF00, "Welcome to Los Santos.");
new name[MAX_PLAYER_NAME+1], string[128];
GetPlayerName(playerid, name, sizeof(name));
format (string, sizeof(string), "[TP]: %s has teleported to /ls.", name);
SendClientMessageToAll(0x0000BBAA, string);
return 1;
}