14.05.2011, 15:41
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;
}
E quero um cmd pra "/soltar" o player do carandiru.