Here i know this is a simple command but well enjoy
here i have the getall for gups :D enjoy!!!
else if (strcmp(cmd, "getall", true) == 0) {
tmp = strtok(cmdtext, idx);
if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first");
else if(!IsPlayerCommandLevel(playerid,"bring")) SendClientMessage(playerid, COLOR_RED, "You don't have acces to this command!");
else { new Float:x, Float:y, Float:z, szMsg[256];
for(new i = 0; i <= MAX_PLAYERS; i++) {
if(IsPlayerConnected(i) == 1)
GetPlayerPos(playerid,x,y,z);
SetPlayerPos(i,x,y + 1.0,z,0,0);
format(szMsg,sizeof(szMsg),"Admin:[ %s ] brought all people to him",gPlayers[playerid]);
SendClientMessage(i,COLOR_GREEN, szMsg);
}
}
return 1;
}
here is if you don't have gups :D enjoy!!!
if (strcmp(cmd, "getall", true) == 0)
{
if (IsPlayerAdmin(playerid) == 0) SendClientMessage(playerid,COLOR_GREEN,"You are not logged in as an admin.");
else {
tmp = strtok(cmdtext, idx);
for(new i = 0; i <= MAX_PLAYERS; i++) {
if(IsPlayerConnected(i) == 1)
GetPlayerPos(playerid,x,y,z);
SetPlayerPos(i,x,y + 1.0,z,0,0);
format(szMsg,sizeof(szMsg),"Admin:[ %s ] Trajo a todos hacia el",gPlayers[playerid]);
SendClientMessage(i,COLOR_GREEN, szMsg);
}
}
return 1;
}
created by me Tato
good but its will lag!
VERY GOOD
:D
Quote from: DivX on April 01, 2011, 12:12:33 PM
VERY GOOD
:D
thanks bro if you need any command maby i can help you :D
exelentt broo :D