SA-MP Forums Archive
[Pedido] Comando VIP - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] Comando VIP (/showthread.php?tid=268228)



[Pedido] Comando VIP - [Red]Maninho - 11.07.2011

Bom Pessoal, Quero Tipo Um Comando Para Os Players VIP
Criarem 2 Veiculos
Tipo /Infernus
e /nrg

Se Alguem Poder Ajudar
Muito Obrigado *-*



Respuesta: [Pedido] Comando VIP - [Red]Maninho - 11.07.2011

vlw mano


Re: [Pedido] Comando VIP - Shadoww5 - 11.07.2011

Nгo seria:

PHP код:
if(!strcmp(cmdtext"/elegy"true)) 
#EDIT

Comando consertado:

PHP код:
new Carro[MAX_PLAYERS]
public 
OnPlayerCommandText(playeridcmdtext[])
{
    if(!
strcmp(cmdtext"/elegy"true))
    {
        new 
Float:dPos[4];
        if(
/*Variavel*/[playerid] != 1) return SendClientMessage(playerid, -1"Vocк nгo й vip!");
        
GetPlayerPos(playeriddPos[0], dPos[1], dPos[2]);    
        
GetPlayerFacingAngle(playeriddPos[3]);
        
DestroyVehicle(Carro[playerid]);
        
Carro[playerid] = CreateVehicle(562dPos[0]+3dPos[1], dPos[2]+1dPos[3], random(127), random(127), -1);
        
PutPlayerInVehicle(playeridCarro[playerid], 0);
        
LinkVehicleToInterior(GetPlayerVehicleID(playerid), GetPlayerInterior(playerid));
        return 
true;
    }
    return 
0;
}
public 
OnPlayerDisconnect(playeridreason)
{
    
DestroyVehicle(Carro[playerid]);
    return 
1;

ID Infernus: 411
ID NRG-500: 522