- 0
Problema getallhere
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
d@rK
Can dau /getallhere apare: Administrator d@rK has teleported everyone to him DE vreo 20 de ori :| :| :|
PAWNO:
[pawn]if(strcmp(cmd, "/getallhere", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 5)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
format(string, 256, "Administrator %s has teleported everyone to himself.", sendername);
BroadCast(COLOR_LIGHTRED,string);
new Float:ix, Float:iy, Float:iz;
GetPlayerPos(playerid, ix, iy, iz);
SetPlayerInterior(i, GetPlayerInterior(playerid));
SetPlayerPos(i, ix, iy, iz+1);
GetPlayerName(playerid, sendername, sizeof(sendername));
printf("[Warning] %s has teleported all players to him", sendername);
ABroadCast(COLOR_LIGHTRED,string,1);
}
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Nu ai acces la aceasta comanda!");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "You Must be logged in to use this command!");
}
return 1;
}[/pawn]
6 answers to this question
Recommended Posts