[Ajuda] Liberar comando pra VIPS
#1

Alguйm me ajuda como posso liberar esse comando pros players VIPS?

PHP код:
if(strcmp(cmd"/ir"true) == 0) {
new 
aname[MAX_PLAYER_NAME];
GetPlayerName(playeridanameMAX_PLAYER_NAME);
format(filesizeof(file), PASTA_CONTASaname);
if(
pAdmin[playerid] > 0   || dini_Int(file"Profissao") == Guardiao){
new 
tmp[256];
new 
plid;
tmp strtok(cmdtextidx);
if(!
strlen(tmp)) {
SendClientMessage(playeridVermelho"[ERRO] Digite: /ir [id]");
return 
1;
}
plid strval(tmp);
if(
IsPlayerConnected(plid)){
new 
interiordele;
interiordele GetPlayerInterior(plid);
SetPlayerInterior(playeridinteriordele);
new 
Float:XFloat:YFloat:Z;
GetPlayerPos(plidXYZ);
SetPlayerPos(playeridXYZ);
{
new 
VehicleID;
VehicleID GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,X+1,Y+1,Z);
PutPlayerInVehicle(playerid,VehicleID,0);
}
new 
pname[MAX_PLAYER_NAME];
GetPlayerName(plidpnameMAX_PLAYER_NAME);
format(stringsizeof(string), "[NH] O Administrador %s (%d) foi atй sua posiзгo para ajuda-lo!"aname,playerid);
SendClientMessage(plid,tcadmstring);
return 
1;
}else{
SendClientMessage(playeridVermelho"[ERRO]ID invбlido");
return 
1;
}
}

Reply


Messages In This Thread
Liberar comando pra VIPS - by LucasTop - 05.03.2014, 16:36
Re: Liberar comando pra VIPS - by Adejair - 05.03.2014, 16:41
Re: Liberar comando pra VIPS - by LucasTadeu - 05.03.2014, 16:45
Re: Liberar comando pra VIPS - by yNexus - 05.03.2014, 17:01
Re: Liberar comando pra VIPS - by LucasTop - 05.03.2014, 17:36

Forum Jump:


Users browsing this thread: 2 Guest(s)