Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => ShowRoom (pawn) => Topic started by: tato on April 01, 2011, 02:16:41 AM

Title: command /c getall
Post by: tato on April 01, 2011, 02:16:41 AM
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
Title: Re: command /c getall
Post by: BIG[H] on April 01, 2011, 09:33:10 AM
good but its will lag!
Title: Re: command /c getall
Post by: DivX on April 01, 2011, 12:12:33 PM
VERY GOOD
:D
Title: Re: command /c getall
Post by: tato on April 02, 2011, 02:11:56 AM
Quote from: BIG[H] on April 01, 2011, 09:33:10 AM
good but its will lag!
why?
Title: Re: command /c getall
Post by: tato on April 02, 2011, 03:08:49 AM
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
Title: Re: command /c getall
Post by: Castagna96 on April 02, 2011, 05:05:43 PM
exelentt broo  :D
Title: Re: command /c getall
Post by: tato on April 02, 2011, 06:22:18 PM
Quote from: Castagna96 on April 02, 2011, 05:05:43 PM
exelentt broo  :D
thanks castagna