[Ajuda] teleport
#1

Galera, como faзo para bloquear 5 veнculos para nгo usar em teleport? eu conseguir fazer para bloquear o teleport se vc estiver em um veнculo e tambйm ir no teleport sem ele, mas eu nгo to conseguindo fazer um modo de bloquear 5 veнculos no teleport. Alguйm sabe?

PHP Code:
if(strcmp(cmdtext,"/grove",true)==0)
    {
    new 
vehicleid GetPlayerVehicleID(playerid);
    new 
State GetPlayerState(playerid);
    
    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
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)