- 0
Buna seara
-
Similar Content
-
- 1 reply
- 304 views
-
- 0 answers
- 443 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
nErVi
Buna seara in primul rand am si eu 3 intrebari pentur voi
1.La fiecare respawn al jucatorilor imi scade 150$ sau de cate ori moare singur etc..
2.Comanda /aod nu inteleg dc nu apare pe mapa adminu cand o foloseste :
if(strcmp(cmd, "/aod", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 1338)
{
if(AdminDuty[playerid] == 1)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[Admin Info] %s [iD:%d] is no longer on duty as an admin.", sendername,playerid);
SendClientMessageToAll(COLOR_DBLUE,string);
AdminDuty[playerid] = 0;
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,0);
SetPlayerToTeamColor(playerid);
}
else
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[Admin Info] %s [iD:%d] is now on duty as an admin.Please /w him if you need help.",sendername,playerid);
SendClientMessageToAll(0xFAAFBEFF,string);
AdminDuty[playerid] = 1;
SetPlayerHealth(playerid,99999);
SetPlayerArmour(playerid,99999);
SetPlayerColor(playerid,0xFAAFBEFF);
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
SetPlayerMarkerForPlayer( i,playerid,0xFAAFBEFF );
}
}
}
}
else
{
SendClientMessage(playerid,COLOR_GREY,"Nu esti admin !");
}
return 1;
}
3. Ar fi dc nu primeste armura de la bodyguard :Aceasta e comanda
if(strcmp(cmd, "/guard", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pJob] != 8)
{
SendClientMessage(playerid, COLOR_GREY, " You are not a Bodyguard!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /guard [playerid/PartOfName] [price]");
return 1;
}
new money;
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) { return 1; }
money = strval(tmp);
if(money < 1 || money > 99999) { SendClientMessage(playerid, COLOR_GREY, " Price not lower then 1, or above 99999!"); return 1; }
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if(ProxDetectorS(8.0, playerid, giveplayerid))
{
if(giveplayerid == playerid)
{
SendClientMessage(playerid, COLOR_GREY, " Cant offer protection to yourself !");
return 1;
}
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* You offerd protection to %s for $%d.", giveplayer, money);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Bodyguard %s wants to protect you for $%d, (type /accept bodyguard) to accept.", sendername, money);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
GuardOffer[giveplayerid] = playerid;
GuardPrice[giveplayerid] = money;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " That player is not near you !");
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " That player is offline!");
}
}
return 1;
}
Sper sa ma ajutati si pe mine :)THX
Link to comment
Share on other sites
5 answers to this question
Recommended Posts