[AJUDA] Carandiru
#1

pawn Код:
//Carandiru
if(strcmp(cmd, "/carandiru",true) == 0)
{
new string[256];
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][Admin] < 2)
{
SendClientMessage(playerid, COLOR_RED, "Vocк nгo й Administrador/Moderador ou nгo tem nнvel suficiente!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_RED, "USE: /carandiru [id]");
return 1;
}
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_RED, "USE: /carandiru [id]");
return 1;
}
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{FFFFFF}Informaзгo{FF0000}: O Player {FFFFFF}%s{FF0000} foi para o Carandiru by {FFFFFF}%s{FF0000}.", giveplayer, sendername);
SendClientMessageToAll(COLOR_RED, string);
SetPlayerInterior(playerid, 0);
ResetPlayerWeapons(playerid);
RemovePlayerFromVehicle(giveplayerid);
SetPlayerPos(giveplayerid, 107.2300,1920.6311,18.5208);
SetPlayerWorldBounds(giveplayerid, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Jogador indisponнvel!");
return 1;
}
}
return 1;
}
Peguei lб do thug life bug aн dei uns ajustes, sу que tipo, eu quero que sу de /carandiru [id] sу que eu sу consigo prender se eu colocar outra coisa do lado "/carandiru [id] aaaa".

E quero um cmd pra "/soltar" o player do carandiru.
Reply


Messages In This Thread
[AJUDA] Carandiru - by [AF]Junior - 14.05.2011, 15:41
Re: [AJUDA] Carandiru - by deregudegu - 14.05.2011, 15:56
Re: [AJUDA] Carandiru - by rjjj - 14.05.2011, 16:01
Re: [AJUDA] Carandiru - by deregudegu - 14.05.2011, 16:19
Re: [AJUDA] Carandiru - by Shadoww5 - 14.05.2011, 16:22
Re: [AJUDA] Carandiru - by [AF]Junior - 14.05.2011, 16:31
Re: [AJUDA] Carandiru - by JonathanFeitosa - 14.05.2011, 16:48
Re: [AJUDA] Carandiru - by [AF]Junior - 14.05.2011, 17:08

Forum Jump:


Users browsing this thread: 1 Guest(s)