• Welcome to Vice City Multiplayer.
 
Menu

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.

Show posts Menu

Messages - yazeen

#136
mIRC/pawn Scripting / Re: Pawn Compiler
March 27, 2011, 02:16:35 PM
Quote from: Mattz on March 19, 2011, 07:33:07 PM
Sinice their wasn't a link to only download pawno, I decided to upload it for you.

Pawno - http://www.megaupload.com/?d=SWVAYY1D

:D
#137
ShowRoom (pawn) / Re: Some useful script
March 27, 2011, 02:12:29 PM
Those Who are Not  Using Gups can use this Add this on Top:

new Call[MAX_PLAYERS];
new Caller[MAX_PLAYERS];


and change the lines like this

else if (strcmp(cmd, "call", true) == 0) {
new plr;
tmp = strtok(cmdtext,idx);
plr = FindPlayerIDFromString(tmp);
if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid,COLOR_GREEN,"Please login first");
else if(Call[playerid], != 100) SendClientMessage(playerid,COLOR_GREEN,"You are already in a call");
else if(!strlen(tmp)) SendClientMessage(playerid,COLOR_GREEN,"Use /c call <Nick/ID>");
else if(plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_GREEN,"Unknown player");
else if(Call[plr], != 100) SendClientMessage(playerid,COLOR_GREEN,"You hear a busy tone");
else {
new szMsg[256];
format(szMsg,sizeof(szMsg),"Calling %s",gPlayers[plr]);
SendClientMessage(playerid,COLOR_GREEN,szMsg);
format(szMsg,sizeof(szMsg),"Incoming call from %s, use /c accept and /c decline",gPlayers[playerid]);
SendClientMessage(plr,COLOR_GREEN,szMsg);
Caller[playerid] = playerid;
}
return 1;
}
else if (strcmp(cmd, "accept", true) == 0) {
if(Caller[playerid] == 100) SendClientMessage(playerid,COLOR_GREEN,"No one has called you");
else {
SendClientMessage(playerid,COLOR_GREEN,"You have accepted a call, use /c c <text> to talk");
SendClientMessage(Caller[playerid],COLOR_GREEN,"Your call has been accepted, use /c c <text> to talk");
Call[playerid],= Caller[playerid],
[playerid][caller]][call] = playerid;
Caller[playerid], = 100;
}
}
else if (strcmp(cmd, "decline", true) == 0) {
if(Caller[playerid], == 100) SendClientMessage(playerid,COLOR_GREEN,"No one has called you");
else {
SendClientMessage(playerid,COLOR_GREEN,"You have denied your call");
SendClientMessage(Caller[playerid],COLOR_GREEN,"Your call has been denied");
Caller[playerid], = 100;
}
}
else if (strcmp(cmd, "c", true) == 0) {
new szMsg[256];
tmp = strtok(cmdtext, idx);
if (Call[playerid] == 100) SendClientMessage(playerid, COLOR_GREEN, "You are not in a call");
else if (!strlen(tmp)) SendClientMessage(playerid, COLOR_GREEN, "/c c <text>");
else {
format(szMsg, sizeof(szMsg), "[Phone][%s]: %s", gPlayers[playerid], cmdtext);
SendClientMessage(Call[playerid],COLOR_GREEN,szMsg);
SendClientMessage(playerid,COLOR_GREEN,szMsg);
}
return 1;
}
else if (strcmp(cmd, "hangup", true) == 0) {
if(Call[playerid]== 100) SendClientMessage(playerid,COLOR_GREEN,"You are not in a call");
else {
SendClientMessage(playerid,COLOR_GREEN,"You hangup the phone");
SendClientMessage(Call[playerid],COLOR_GREEN,"Phone call ended");
playerid[call]][call] = 100;
Call[playerid] = 100;
}
}


Hope it Helps!
#138
mIRC/pawn Scripting / Re: HELP NEEDED GUYS!!!
March 27, 2011, 09:52:16 AM
Quote from: Madara on March 27, 2011, 09:43:30 AM
To send "heal" a friend, use this command is similar to a "sethp" but in this, sent him to default a player for his "health " to 100.

else if (strcmp(cmd, "healfriend", true) == 0) {
new sendmsn[256]; tmp = strtok(cmdtext, idx);
if (!strlen(tmp)) {format(sendmsn, 256,"[Syntax] - The correct use: /c %s <playerid/name>.",cmd); SendClientMessage(playerid,0x04A36BFF,MSN);}
else {
     new toheal = FindPlayerIDFromString(tmp);
     if (toheal == INACTIVE_PLAYER_ID) SendClientMessage(playerid, 0x04A36BFF,"[Error] - Unknown player.");
     else {
                  format(sendmsn,256, "%s send heal to: %s.",gPlayers[playerid],gPlayers[toheal]);
                  SendClientMessageToAll(0x377DFFFF,sendmsn);
                  SetPlayerHealth(toheal,100);
                  }
}
return 1;
}


I hope it serves and if any problem, please tell me.

Greeting. ;)

THXXXXXx!!!
#139
mIRC/pawn Scripting / Re: Need Help?
March 27, 2011, 07:43:04 AM
Quote from: Robd on March 27, 2011, 07:41:35 AM
Exceed 15 what?

Fixed Sorry About my english1!! :P
#140
ShowRoom (pawn) / Re: Some usefull functions
March 27, 2011, 07:28:45 AM
Quote from: Robd on March 27, 2011, 07:18:39 AM
Quote from: BIG[H] on March 25, 2011, 08:19:18 AM
Nah who said that you are pro in scripting? Can you make a keycard?
Yes, make a pickup. OnPlayerPickup make a series of functions for that pickup. In those add a enum for the player and change it to that they do have keycard. then make a command (or a constant timer that detects range) that opens if they have picked it up.

;D

and no, im not pro, but im above average and i get it done.

@Robd Big[H] Means Not Making Pickup he mean making Random Keycard
For example Keycard is somwhere at Vice Beach Finding it will give u 1k
If he Finds it the next will be other location and other price
#141
mIRC/pawn Scripting / Re: HELP NEEDED GUYS!!!
March 27, 2011, 05:55:29 AM
}
if (strcmp(cmd, "heal", true) == 0)
{
new
tmp[20],
             cash,
             plr;
             
tmp = strtok(cmdtext, idx);
cash = GetPlayerMoney(plr);
plr = FindPlayerIDFromString(tmp);
{

if (IsPlayerConnected(playerid))
if (strlen(tmp))
if(Medic[playerid]== 1))
if(cash >= 100))
if(CallMedic[plr] == 1))
{
SetPlayerHealth(playerid, 100.0);
SendClientMessage(plr, orange, "You have been healed by Medic");
SendClientMessage(playerid, orange, "Player healed You Earned 300$");
SetPlayerMoney(playerid,cash+300);
SetPlayerMoney(plr,cash-100);

}
else
{
SendClientMessage(playerid, orange, "No Such Player");
}
}
else
{
SendClientMessage(playerid, orange, "Usage: /c Heal [Playerid]);
}
}
else
{
  SendClientMessage(playerid, orange, "This Player Do Not Have Enough Cash");
}
}
else
{
SendClientMessage(playerid, orange, "This Player Has Not Called Medic");
}
return 1;


Shows Errors:
C:\Documents and Settings\yachu\Desktop\Vcmp\Gamemodes\RPG Server\RPG Server\gamemodes\FSRPG.pwn(813) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\yachu\Desktop\Vcmp\Gamemodes\RPG Server\RPG Server\gamemodes\FSRPG.pwn(820) : error 029: invalid expression, assumed zero
C:\Documents and Settings\yachu\Desktop\Vcmp\Gamemodes\RPG Server\RPG Server\gamemodes\FSRPG.pwn(820 -- 821) : warning 215: expression has no effect
C:\Documents and Settings\yachu\Desktop\Vcmp\Gamemodes\RPG Server\RPG Server\gamemodes\FSRPG.pwn(821) : error 001: expected token: ";", but found "if"
C:\Documents and Settings\yachu\Desktop\Vcmp\Gamemodes\RPG Server\RPG Server\gamemodes\FSRPG.pwn(821) : warning 217: loose indentation
C:\Documents and Settings\yachu\Desktop\Vcmp\Gamemodes\RPG Server\RPG Server\gamemodes\FSRPG.pwn(821) : error 029: invalid expression, assumed zero
C:\Documents and Settings\yachu\Desktop\Vcmp\Gamemodes\RPG Server\RPG Server\gamemodes\FSRPG.pwn(821) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
#142
ShowRoom (pawn) / Re: Kick to Invalid Nick by Madara
March 27, 2011, 05:20:31 AM
You Are a Pro scripter Best Of Luck In studing english! ;D
#143
mIRC/pawn Scripting / Re: Anti-Speed hack
March 26, 2011, 03:33:50 PM
Quote from: [AoD]NC on March 26, 2011, 03:11:17 PM
It is not worth to make a server-side anti-speed-hack IMO.

Note that there is no zombie actor in VC.

yes there is a zombie actor its not realy zombie but fells like one they are

Begger injured man and women
Phil with one hand

Thats all
#144
If u knew English Better You Will Be one of the Best scripters in pawno

Best of luck in learining English
#145
mIRC/pawn Scripting / Re: HELP NEEDED GUYS!!!
March 26, 2011, 03:17:58 PM
And i this too The player should be near [the player who use /c heal [Playerid] ]
#146
mIRC/pawn Scripting / Re: HELP NEEDED GUYS!!!
March 26, 2011, 03:16:49 PM
Quote from: [AoD]NC on March 26, 2011, 03:13:33 PM
Look at the !heal command. It contains probably something like SetPlayerHealth( player, 100 ). Instead of player, you have to use there the FindPlayer from text function.

Find Player From text or FindplayeridFromString

Please Help when i make it shows Error
#147
mIRC/pawn Scripting / HELP NEEDED GUYS!!!
March 26, 2011, 02:51:09 PM
I want a Command That a Player Can Heal other Player using /c heal [Playerid]

Please Help me
#148
mIRC/pawn Scripting / Re: Filter Script invalid nick
March 26, 2011, 02:49:42 PM
Quote from: DivX on March 26, 2011, 12:04:07 PM
filterscript help invalid nick gups
eg if you register for a sign XD *
  • I saw the console

    :(





Cant UnderStand a shit!
#149
mIRC/pawn Scripting / Re: Help needed please
March 26, 2011, 02:19:55 PM
Quote from: BIG[H] on March 26, 2011, 01:37:17 PM
PERFECTLY FAILED!!

Big  i dont Get any Buggs by using this!!
Its PASSED PERFECTLLY
#150
ShowRoom (pawn) / Re: [RELEASED][RPG] Gamemode
March 26, 2011, 09:08:54 AM
Moo Mapper is a alaggin Underware