[Ajuda] teleport
#2

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(vehicleid2498.6641,-1667.9890,13.3468); 
        
format(stringsizeof(string), "%s foi para a GROOVE STREET | /GROVE | ",  GetPlayerNameEx(playerid)); 
        
GivePlayerGrana(playerid, -2000); 
        
SendClientMessageToAll(-1string);
    }else{ 
        
SetPlayerPos(playerid2498.6641,-1667.9890,13.3468); 
        
SetPlayerInterior(playerid,0); 
        
GameTextForPlayer(playerid,"Grove Street",4000,6); 
        
format(stringsizeof(string), "%s foi para a GROOVE STREET | /GROVE | ",  GetPlayerNameEx(playerid)); 
        
GivePlayerGrana(playerid, -2000); 
        
SendClientMessageToAll(-1string);
    } 
    return 
1;

Reply


Messages In This Thread
teleport - by shirouz - 08.02.2019, 17:10
Re: teleport - by Felipealves - 08.02.2019, 17:30

Forum Jump:


Users browsing this thread: 1 Guest(s)