Započeo Impulseâ„¢
•28. Jul 2011.[Pomoc]/showbadge
697
pregleda
2
postova
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
296
Postovi:
74
Teme:
Pridružio se:Feb. 2011
28. Jul 2011.
Skripta koju koristim:Noxicus
Detaljan opis problema:uradio sam svoju komandu ali pise nisi policajac,ali sam policajac
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Detaljan opis problema:uradio sam svoju komandu ali pise nisi policajac,ali sam policajac
Dio skripte:
COMMAND:showbadge(playerid, params[]) //using ZCMD this is how your command will start off looking like.
{
if(PlayerInfo == 1) // player level more (>) 0
{
new otherplayerid;
if(sscanf(params, "u", otherplayerid)) // split input string and check level value 0 to 5
SendClientMessage(playerid, 0xFFFFFFFF, "/showbadge [playerid/name]");
else if(otherplayerid == INVALID_PLAYER_ID) // Check player connected
SendClientMessage(playerid, 0xFFFFFFFF, "Taj igrac nije na serveru");
else
{
new string;
format(string, sizeof(string), "| %s znacka |", GetPlayerName(playerid));
SendClientMessage(otherplayerid, COLOR_YELLOW, string);
SendClientMessage(playerid, 0xFFFFFFFF, "Pokazao si svoju znacku");
}
}
else
{
SendClientMessage(playerid, 0xAAAAAAAA, "Nisi policajac.");
}
return 1;
}Neke slike/video za lakse dobivanje pomoci(neobavezno):
28. Jul 2011.
A kako je definisano na Noxicus za policiju to ovde mislim if(PlayerInfo == 1) // player level more (>) 0 to stavljas tu umesto pFaction ako su emulatori
COMMAND:showbadge(playerid, params[]) //using ZCMD this is how your command will start off looking like.
{
if(PlayerInfo == 1) // player level more (>) 0
{
new otherplayerid;
if(sscanf(params, "u", otherplayerid)) // split input string and check level value 0 to 5
SendClientMessage(playerid, 0xFFFFFFFF, "/showbadge [playerid/name]");
else if(otherplayerid == INVALID_PLAYER_ID) // Check player connected
SendClientMessage(playerid, 0xFFFFFFFF, "Taj igrac nije na serveru");
else
{
new string;
format(string, sizeof(string), "| %s znacka |", GetPlayerName(playerid));
SendClientMessage(otherplayerid, COLOR_YELLOW, string);
SendClientMessage(playerid, 0xFFFFFFFF, "Pokazao si svoju znacku");
}
}
else
{
SendClientMessage(playerid, 0xAAAAAAAA, "Nisi policajac.");
}
return 1;
}Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava