31.07.2015, 18:05
Quote:
Nгo entendi muito bem mas acho que vocк quer colocar para o veiculo ser usado somente por quem criou correto?
mas passa o comando de criar o veiculo. |
PHP код:
CMD:nrg(playerid, params[])
{
new player_b[MAX_PLAYER_NAME];
GetPlayerName(playerid, player_b, sizeof(player_b));
if(strcmp(player_b, ".Gh0sT.", true) != 0 ) return SendClientMessage(playerid, -1, "You not have permissions to use command");
if(nrg[playerid] != 0) DestroyVehicle(nrg[playerid]);
new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x,y,z);
nrg[playerid] = CreateVehicle(522, x,y,z, 1.0, -1,-1, 99);
PutPlayerInVehicle(playerid, nrg[playerid], 0);
SendClientMessage(playerid,1, "Bom Proveito .Gh0sT. ");
SendClientMessage(playerid,1,"nrgCOPTERO CRIADO COM SUCESSO");
return 1;
}