08.02.2019, 17:30
PHP Code:
if(strcmp(cmdtext,"/grove",true)==0)
{
new vehicleid = GetPlayerVehicleID(playerid);
new State = GetPlayerState(playerid);
if(GetVehicleModel(vehicleid) == 522 || GetVehicleModel(vehicleid) == 520) return SendClientMessage(playerid, -1, "Vocк nгo pode teleportar-se com esse veiculo!");
if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER){
GameTextForPlayer(playerid,"Grove Street",4000,6);
LinkVehicleToInterior(vehicleid,0);
SetPlayerInterior(playerid,0);
SetVehiclePos(vehicleid, 2498.6641,-1667.9890,13.3468);
format(string, sizeof(string), "%s foi para a GROOVE STREET | /GROVE | ", GetPlayerNameEx(playerid));
GivePlayerGrana(playerid, -2000);
SendClientMessageToAll(-1, string);
}else{
SetPlayerPos(playerid, 2498.6641,-1667.9890,13.3468);
SetPlayerInterior(playerid,0);
GameTextForPlayer(playerid,"Grove Street",4000,6);
format(string, sizeof(string), "%s foi para a GROOVE STREET | /GROVE | ", GetPlayerNameEx(playerid));
GivePlayerGrana(playerid, -2000);
SendClientMessageToAll(-1, string);
}
return 1;
}