[Ajuda]prisao
#4

pawn Код:
if(strcmp(cmd, "/prender",true) == 0)
    {
            new tempo[20];
            if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo й um Administrador Dono!");
            tmp = strtok(cmdtext, idx);
            tempo = strtok(cmdtext, idx);
            if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "USE: /prender [id]");
            giveplayerid = ReturnUser(tmp);
            if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, COLOR_GRAD2, "[ERRO] Player Off-line!");
            if(giveplayerid != INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GRAD2, "[ERRO] Vocк nгo pode se prender!");
            GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "* Vocк prendeu %s!", giveplayer);
            SendClientMessage(playerid, COLOR_LIGHTRED, string);
            else
            {
             format(string, sizeof(string), "* Vocк foi colocado no Presнdio Pelo Admin %s.", sendername);
             SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
            }
            GameTextForPlayer(giveplayerid, "~b~Welcome to the ~n~~r~Jungle baby", 5000, 3);
            ResetPlayerWeapons(giveplayerid);
            SetPlayerWantedLevel(giveplayerid, 0);
            SetPlayerPos(giveplayerid, 0.0,0.0,0.0); // Troque por suas coordenadas
            return 1;
    }
Reply


Messages In This Thread
[Ajuda]prisao - by Luiz98 - 14.05.2011, 19:11
Re: prisao - by JonathanFeitosa - 14.05.2011, 19:15
Re: prisao - by Luiz98 - 14.05.2011, 19:18
Re: prisao - by Macintosh - 14.05.2011, 19:23
Re: [Ajuda]prisao - by Shadoww5 - 14.05.2011, 20:55

Forum Jump:


Users browsing this thread: 1 Guest(s)