Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - BIG[H]

Pages: 1 ... 9 10 [11]
151
mIRC/pawn Scripting / Re: One can! Llms in pawno (PWN)?
« on: February 13, 2011, 08:09:57 pm »
Easiest even i released a Game mode (Black Panther)

152
mIRC/pawn Scripting / Re: here help me
« on: February 13, 2011, 08:06:56 pm »
Quote
   else if (strcmp(cmd, "kick", true) == 0) {
      new reason[256], plr, szMsg[256];
      tmp = strtok(cmdtext, idx), reason = strtok(cmdtext, idx), plr = FindPlayerIDFromString(tmp);
      else if (!strlen(reason)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c kick [Nick/ID] [Reason]");
        else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
      else {
         format(szMsg,sizeof(szMsg),"Admin %s kicked player:[ %s ] Reason:[ %s ]",gPlayers[playerid],gPlayers[plr],cmdtext[strlen(tmp)+6]);
         SendClientMessageToAll(COLOR_GREEN,szMsg);
         Kick(plr);
      }
      return 1;

Only Rcon Admin can kick

   
Quote
else if (strcmp(cmd, "kick", true) == 0) {
      new reason[256], plr, szMsg[256];
      tmp = strtok(cmdtext, idx), reason = strtok(cmdtext, idx), plr = FindPlayerIDFromString(tmp);
if(!IsPlayerAdmin(playerid) SendClientMessage(playerid,COLOR_RED,"You are not Rcon Admin");
      else if (!strlen(reason)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c kick [Nick/ID] [Reason]");
        else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
      else {
         format(szMsg,sizeof(szMsg),"Admin %s kicked player:[ %s ] Reason:[ %s ]",gPlayers[playerid],gPlayers[plr],cmdtext[strlen(tmp)+6]);
         SendClientMessageToAll(COLOR_GREEN,szMsg);
         Kick(plr);
      }
      return 1;

154
mIRC/pawn Scripting / Re: The question on the location
« on: February 12, 2011, 04:56:17 pm »
sorry its /set 16
not /set16
try /set 16

155
mIRC/pawn Scripting / Re: GUPS question
« on: February 11, 2011, 10:47:50 pm »
Quote
   else if (strcmp(cmd, "back", true) == 0) {
       new name[20], string[128];
       GetPlayerName(playerid, name, 20);
          format(string, sizeof(string), "%s, Is Back!", name);
          SendClientMessageToAll(COLOR_GREEN, string);
          return 1;
    }

He is using GUPS so he didn't need
Quote
GetPlayerName(playerid, name, 20);

he can use gPlayers[playerid] :P


Quote
else if (strcmp(cmd, "back", true) == 0) {
       new string[128];
          format(string, sizeof(string), "%s, Is Back!", gPlayers[playerid]);
          SendClientMessageToAll(COLOR_GREEN, string);
          return 1;

156
mIRC/pawn Scripting / Re: The question on the location
« on: February 11, 2011, 10:46:56 pm »
I don't know Icons ID and u may test all 1 to 100 what ever

157
mIRC/pawn Scripting / Re: help about cars
« on: February 10, 2011, 01:23:16 pm »
ITS Default Server Setting xD ::) u can't Change it

158
mIRC/pawn Scripting / Re: The question on the location
« on: February 10, 2011, 08:21:54 am »
Quote
Such us ,  i type /heal ,   but i am not in hospital.  So   "  u are not in the hosopital '

how can i Identify the location  , setplayerpos or ?


So , What how i can write in the pawno ..    I don' t know ..

and how can I  creat a icon  On the radar,,,   Thanks .

xD you are Using GUPS huh

So For Heal CMD Find this

Quote
else if (strcmp(cmd, "!heal", true) == 0) {
        new Float:Health; GetPlayerHealth(playerid,Health);
                                        if(strcmp(GetPlayerLocation(playerid), "Hospital-Vice-Point-Vice-City-Beach", true) == 1)                                        

SendClientMessage(playerid,COLOR_GREEN, "You have to be at the hospital.");
          else if (Health >= 100) SendClientMessage(playerid,COLOR_GREEN,"Error: You are healthy!");
        else {
            SetPlayerHealth(playerid,100.0);
               SendClientMessage(playerid,COLOR_GREEN,"You have been healed.");
        }
        return 1;
}

Change it TO this :
Quote
else if (strcmp(cmd, "!heal", true) == 0) {
      new Float:Health; GetPlayerHealth(playerid,Health);

        if (Health >= 100) SendClientMessage(playerid,COLOR_GREEN,"Error: You are healthy!");
      else {
         SetPlayerHealth(playerid,100.0);
            SendClientMessage(playerid,COLOR_GREEN,"You have been healed.");
      }
      return 1;
}

And If you want To Create icon i have Solution But In pawn SendRconCommand is Bugged xD


so Login as admin type in game
your rcon password from server.cfg

Quote
/admin rcon_password

then type
Quote
/s iconbla
it will give u Coords then Hurry Don't miss the Coordsor anyone will with Talk will remove it
your coords will be Look like this

Class :0 0 0 0 Pos:x Pos:y Pox:z Angle 0 0 0 0
pos are Numbers of map where u are standing
then type
Quote
/set 16 Icon-ID Pos:x Pos:y Pos:z
for Easy i give u example

i type
Quote
/s posicon

then it comes
Quote
Class : 0 0 0 0 -396.45454 324.68541 -435.4442 29.54544 0 0 0 0
and next i type
without angle and Zero's
with Icon ID
Quote
/set 16 23 -396.45454 324.68541 -435.4442
EDIT: the icon comes for Player who are in game not for then who after icon appear Connect server you will have to type it again when some one connect's

159
mIRC/pawn Scripting / Re: Help /c freeze all
« on: February 09, 2011, 01:07:12 am »
Quote
else if (strcmp(cmd, "unfreezeall", true) == 0) {
      if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!");
      else if(!IsPlayerCommandLevel(playerid,"healall")) SendClientMessage(playerid, COLOR_RED, "You don't have access to use this command!");
      else {
         unFreezeAll();
      }
      return 1;
   }

Quote
stock unFreezeAll()
{
    for(new i = 0; i <= MAX_PLAYERS; i++) {
        if(IsPlayerConnected(i) == 1) TogglePlayerControllable(i,1);
    }
}


:p piece of Cake

Pages: 1 ... 9 10 [11]