Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Lucic | Digital Hosting poslato Januar 14, 2012, 19:48:04 POSLE PODNE

Naslov: [Pomoc] Komanda
Poruka od: Lucic | Digital Hosting poslato Januar 14, 2012, 19:48:04 POSLE PODNE
Skripta koju koristim:GTARP
Detaljan opis problema:kako da dodam da samo admin moze da koristi ovu komandu
Dio skripte:   if(strcmp(cmdtext, "/tune", true) == 0) {
new playerstate = GetPlayerState(playerid);
if(playerstate == PLAYER_STATE_DRIVER) {
    return ModCar(playerid);
}
else {
   return SendClientMessage(playerid, COLOR_RED, "[ERROR] You cannot modify/tune a car unless you are the driver.");
}
}
return 0;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):
Naslov: Odg: [Pomoc] Komanda
Poruka od: K4[Я]!K3 poslato Januar 14, 2012, 19:55:06 POSLE PODNE
if(strcmp(cmdtext, "/tune", true) == 0) {
                if(PlayerInfo[playerid][pAdmin] < 1) return 1; // ovo je varijabla iz gf moda.. jer ga najvise koristite (:
new playerstate = GetPlayerState(playerid);
if(playerstate == PLAYER_STATE_DRIVER) {
    return ModCar(playerid);
}
else {
   return SendClientMessage(playerid, COLOR_RED, "[ERROR] You cannot modify/tune a car unless you are the driver.");
}
}
return 0;
}
Naslov: Odg: [Pomoc] Komanda
Poruka od: Lucic | Digital Hosting poslato Januar 14, 2012, 20:05:26 POSLE PODNE
e bas ti hvala LOCK