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
![Cheesy :D](http://archive.vc-mp.org/to2011/Smileys/default/cheesy.gif)
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 MenuQuote 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
new Call[MAX_PLAYERS];
new Caller[MAX_PLAYERS];
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;
}
}
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.
Quote from: Robd on March 27, 2011, 07:18:39 AMQuote from: BIG[H] on March 25, 2011, 08:19:18 AMYes, 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.
Nah who said that you are pro in scripting? Can you make a keycard?
and no, im not pro, but im above average and i get it done.
}
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;
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.
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.
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.
Quote from: DivX on March 26, 2011, 12:04:07 PMCant UnderStand a shit!
filterscript help invalid nick gups
eg if you register for a sign XD *
- I saw the console
Quote from: BIG[H] on March 26, 2011, 01:37:17 PM
PERFECTLY FAILED!!