12.06.2011, 16:24
pawn Код:
if(strcmp(cmdtext, "/ls", true) == 0)
{
SetPlayerInterior(playerid, 0);
if(State!=PLAYER_STATE_DRIVER) return SetPlayerPos(playerid,1130.2557,-1456.8792,15.7969);
else if(IsPlayerInVehicle(playerid, cartype) == 1)
{
SetVehiclePos(cartype,1130.2557,-1456.8792,15.7969);
SetVehicleZAngle(cartype,266.6323);
}
else return SetPlayerPos(playerid,1130.2557,-1456.8792,15.7969);
SendClientMessage(playerid, 0x00C2ECFF,"[EW] Vocк foi para a cidade de Los Santos /ls!");
new Nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nome, sizeof(Nome));
format(string, sizeof(string), "[EW] %s foi para /ls", Nome);
SendClientMessageToAll(0xD5E8A8AA, string);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
return 1;
}