Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:prender(playerid, params[])
- {
- if(PlayerInfo[playerid][Admin] < 2) return SendClientMessage(playerid, COR_ERRO,"ERRO: Você não tem permissão para usar este comando.");
- new id,minutos,motivo[20],string[128];
- if(sscanf(params,"uis",id,minutos,motivo)) return SendClientMessage(playerid, COR_USOCORRETO,"Uso: /prender [id] [minutos] [motivo]");
- if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COR_ERRO,"ERRO: ID Inválido");
- if(minutos > 60) return SendClientMessage(playerid, COR_ERRO,"ERRO: O máximo de minutos é 60!");
- SetPlayerInterior(id, 5);
- SetPlayerPos(id, 322.197998,302.497985,999.148437);
- SetPlayerSpecialAction(id, 24);
- Preso[id] = 1;
- PlayerInfo[id][pPresoADM] = 1;
- PlayerInfo[id][pTempoPreso] = 60*minutos;
- Rptlido[playerid] += 1;
- format(string, sizeof(string),"admCMD: %s foi preso pelo %s %s por %d minutos | Motivo: %s",Nome(id),AccountName(playerid),Nome(playerid),minutos,motivo);
- SendClientMessageToAll(0xFA8072AA, string);
- WriteLog("prender", String);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment