- 0
Ajutor wanted
-
Similar Content
-
- 1 reply
- 224 views
-
- 2 replies
- 148 views
-
Ajutor
By O dai cu So2,
- 1 reply
- 328 views
-
- 3 replies
- 241 views
-
- 0 replies
- 131 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
KiLLeR1122
1. Am comanda /jail daca dau /jail 0 0 la stelele de la wanted dispar iar la /stats ramane wanted level 10 si wanted-ul ramane activ deoarece nu pot folosi nici comenzile deci raman cu wanted.
2. La comanda robbank ca sa imi apara 10 stele e bine daca pun functia: SetPlayerWantedLevel(giveplayerid, 10); ?
3. Cand intru automat pe server imi da wanted imi apar 1-2 stele.
[pawn]if(strcmp(cmd, "/jail", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /jail [playerid/PartOfName] [time(minutes)]");
return 1;
}
new playa;
new money;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
money = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 2)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* You Jailed %s.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
format(string, sizeof(string), "* You were Jailed by Admin %s.", sendername);
SendClientMessage(playa, COLOR_LIGHTRED, string);
ResetPlayerWeapons(playa);
WantedPoints[playa] = 0;
PlayerInfo[playa][pJailed] = 1;
PlayerInfo[playa][pJailTime] = money*60;
SetPlayerInterior(playa, 6);
SetPlayerPos(playa, 264.6288,77.5742,1001.0391);
format(string, sizeof(string), "You are jailed for %d minutes. Bail: Unable", money);
SendClientMessage(playa, COLOR_LIGHTBLUE, string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
}
}
return 1;
}[/pawn]
Te-am ajutat cu ceva? Da-mi un POZITIV !
Link to comment
Share on other sites
0 answers to this question
Recommended Posts