Vice City Multiplayer
January 24, 2022, 11:39:46 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: VC:MP 0.3z r2 is released! http://vicecitymultiplayer.com
 
  Home Help Search Members Login Register  
  Show Posts
Pages: [1] 2 3 4
1  VC:MP / Support / Property in GUPS 1.16 on: April 28, 2011, 01:04:15 pm
neNeed to add more Property in GUPS 1.16 how to add tell me..? Huh
2  VC:MP / Support / Re: Problems To Play VC:MP on: April 27, 2011, 03:42:29 pm
Reinstall VC-MP Client this is Happened to me and i reinstalled it
3  VC:MP / Support / Re: Need to add m ore CHaracter and SKin on: April 26, 2011, 03:15:55 pm
i have GUPS 1.16 i am having problem in Characters folder of GUPS have Characters id how to put in these id
4  VC:MP / Support / Need to add m ore CHaracter and SKin on: April 26, 2011, 01:14:07 pm
I need to add more characters and Skin in VC-MP i have GUPS 1.16 how to do hat give me special tutorial dont laugh at m e i am new bie
5  VC:MP / ShowRoom (pawn) / Re: GUPS 1.16a on: April 25, 2011, 07:40:42 pm
How to ApPly these
6  VC:MP / ShowRoom (pawn) / I Want to add more Characters Help! on: April 25, 2011, 06:22:48 pm
i want to add more players in GUPS 1.16 So what i have to do how to find Spawn Characters and how to add them?
7  VC:MP / ShowRoom (pawn) / Re: GUPS 1.16a on: April 25, 2011, 05:46:45 pm
how to login as admin in this script tell me
8  VC:MP / Support / Re: How to kick on: April 25, 2011, 01:40:36 pm
when i kick  like this /kick 1 lolz then it just kick dont give reason and give me fulll COmmands of VC-MP server
9  VC:MP / Support / Re: How to kick on: April 25, 2011, 12:55:01 pm
i want to kick with reason what   i have to add
10  VC:MP / Support / Re: How to kick on: April 25, 2011, 12:19:04 pm
hey i need to kick  players with reason is it without Reasonable....
11  VC:MP / Support / Re: How to kick on: April 25, 2011, 10:44:57 am
[IMG=http://img233.imageshack.us/img233/9922/25305695.png][/IMG]

Uploaded with ImageShack.us
12  VC:MP / Support / Re: How to kick on: April 25, 2011, 10:37:10 am
/c kick [Nick/Id] [Reason](Credits to me)

   
Code:
}
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))
else if (!strlen(reason)) SendClientMessage(playerid,0xFFFF00AA,"USAGE: /c kick [Nick/ID] [Reason]");
  else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,0xFFFF00AA,"Error: Unknown player");
else {
format(szMsg,sizeof(szMsg),"Admin: %s kicked player:[ %s ] Reason:[ %s ]",gPlayers[playerid],gPlayers[plr],cmdtext[strlen(tmp)+6]);
SendClientMessageToAll(0xFFFF00AA,szMsg);
Kick(plr);
}

If u Dont Have FindPlayerIdFromString Function Add it  (Credits to bakasan

Code:
public FindPlayerIDFromString(string[])
{// for determining player id from a string  -bakasan
new player = INACTIVE_PLAYER_ID;
new p = 0;
while (p < MAX_PLAYERS) { if (strfind(gPlayers[p],string,true) != -1) { player=p;break; } p++; }
if (player == INACTIVE_PLAYER_ID) {// string didnt match so check if it can be an id
if ((strlen(string) > 2) || (isnumeric(string) == 0)) { return INACTIVE_PLAYER_ID; }
player = strval(string);// string is numeric and not more than 2 digits
}
if (!IsPlayerConnected(player)) { return INACTIVE_PLAYER_ID; }
return player;// valid id found
}
return 1;
}

Unban/Ban Command(Credits to madara)
UnBan/Ban By madara


How to use these 1st one
When i am using 2nd one then reason isnot coming Why tell me i want to use 1st one When i put it it gives a huge list of error
13  VC:MP / Support / Re: How to kick on: April 25, 2011, 10:30:43 am
tahnx Stormous thanx
14  VC:MP / Support / Re: How to kick on: April 24, 2011, 03:03:32 pm
this error is coming
[IMG=http://img217.imageshack.us/img217/6961/75063247.png][/IMG]

Uploaded with ImageShack.us
15  VC:MP / Support / Re: How to kick on: April 24, 2011, 02:46:27 pm
when i put it and compile it it says Error
Pages: [1] 2 3 4
Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!