Jump to content
  • 0

problema skinuri


yonutzz

Question

Salut. cand intru intr-o factiune, de exemplu PD imi da skinul de pd, dupa ce dau restart la server ma da cu alt skin, cel de civil. Si la /jail cand arestez un player ii da skin cu id 62 <cel de la inchisoare> si dupa ce se termina timpul de stat la jail nu ii se da skinul inapoi. Ramane cel de la inchisoare . Aceasta este comanda de /jail

[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, 0);

SetPlayerSkin(playa, 62);

new rand = random(23);

switch(rand)

{

    case 0: SetPlayerPos(playa,  1805.6311,-1788.9714,13.5441);

    case 1: SetPlayerPos(playa,  1805.6311,-1788.9714,13.5441);

    case 2: SetPlayerPos(playa,  1805.6311,-1788.9714,13.5441);

    case 3: SetPlayerPos(playa,  1805.6311,-1788.9714,13.5441);

    case 4: SetPlayerPos(playa,  1805.6311,-1788.9714,13.5441);

    case 5: SetPlayerPos(playa,  1805.6311,-1788.9714,13.5441);

    case 6: SetPlayerPos(playa,  1805.6311,-1788.9714,13.5441);

case 7: SetPlayerPos(playa,  1805.6311,-1788.9714,13.5441);

case 8: SetPlayerPos(playa,  1805.6311,-1788.9714,13.5441);

case 9: SetPlayerPos(playa,  1805.6311,-1788.9714,13.5441);

case 10: SetPlayerPos(playa, 1805.6311,-1788.9714,13.5441);

case 11: SetPlayerPos(playa,  1805.6311,-1788.9714,13.5441);

case 12: SetPlayerPos(playa,  1805.6311,-1788.9714,13.5441);

    case 13: SetPlayerPos(playa,  1805.6311,-1788.9714,13.5441);

    case 14: SetPlayerPos(playa,  1805.6311,-1788.9714,13.5441);

    case 15: SetPlayerPos(playa,  1805.6311,-1788.9714,13.5441);

    case 16: SetPlayerPos(playa,  1805.6311,-1788.9714,13.5441);

    case 17: SetPlayerPos(playa,  1805.6311,-1788.9714,13.5441);

    case 18: SetPlayerPos(playa,  1805.6311,-1788.9714,13.5441);

case 19: SetPlayerPos(playa,  1805.6311,-1788.9714,13.5441);

case 20: SetPlayerPos(playa,  1805.6311,-1788.9714,13.5441);

case 21: SetPlayerPos(playa,  1805.6311,-1788.9714,13.5441);

case 22: SetPlayerPos(playa,  1805.6311,-1788.9714,13.5441);

case 23: SetPlayerPos(playa,  1805.6311,-1788.9714,13.5441);

}

TogglePlayerControllable(playerid, 0);

OToggleControl = SetTimerEx("OToggle", 2000, false, "i", playerid);

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]

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Exact cum a spus Gireada atunci cand tu esti scos din jail , ai [glow=red,2,300]public SetPlayerUnjail(playerid)[/glow] iar acolo trebuie sa iti setezi ca atunci cand este scos sa ii redeie skinul. Chiar e asa de greu, fratilor ganditi si voi nu dam mura-n gura aici.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

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.