11.04.2012, 00:24
Ta aqui, desfrute
:

pawn Код:
if(strcmp(cmd, "/ajustar",true) == 0)
{
if(IsPlayerConnected(playerid))
{
new tempo[20];
new tempo2;
if(!IsACop(playerid))
{
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo esta autorizado para usar este comando!");
return 1;
}
tmp = strtok(cmdtext, idx);
tempo = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /cadeia [id] [ Tempo ]");
return 1;
}
if(!strlen(tempo))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /cadeia [id] [ Tempo ]");
return 1;
}
giveplayerid = ReturnUser(tmp);
tempo2 = strval(tempo);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* Vocк Ajustou o(a) %s Na Cadeia.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
format(string, sizeof(string), "* Vocк foi ajustado por %s.", sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
GameTextForPlayer(giveplayerid, "~b~Ajustado com ~n~~r~~Le Sucess", 5000, 3);
PlayerInfo[giveplayerid][pJailTime] = tempo2 * 60;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " O jogador estб offline !");
return 1;
}
}
return 1;
}