• 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

#151
And Delete This Too

}
else if (strcmp(cmd, "!pheal", true) == 0) {
new Float:Health; GetPlayerHealth(playerid,Health); tmp = strtok(cmdtext, idx);
if (Health >= 100) SendClientMessage(playerid,COLOR_GREEN,"Error: You are healthy!");
else if(IsPropertyOwnedShared(strval(tmp),gPlayers[playerid]) == -1) SendClientMessage(playerid,COLOR_GREEN, "Error: You do not own that property!");
else {
    new as[4][128];
    split(dini_Get("/Pickups/Pickups.ini",tmp), as, ' ');

if(GetDistance(playerid,floatstr(as[1]),floatstr(as[2]),floatstr(as[3])) >= 15) {
SendClientMessage(playerid,COLOR_GREEN,"You have to be closer to your property!");
return 1;
}
new calc = (100 - 1);
    format(szMsg,sizeof(szMsg),"%d of your health has been restored.",calc);
SendClientMessage(playerid,COLOR_GREEN,szMsg);
SetPlayerHealth(playerid,100.0);
}
return 1;
}


Soory But u cant use !pdistance and !pheal Ask Pro Scripters to Help you in that
#152
Ok Dawood Your Using So here you go
Delete These Lines:

#define Pickups             "/Pickups/Pickups.ini"

}
else if (strcmp(cmd, "addprop", true) == 0) {
    new name[100];
    tmp = strtok(cmdtext, idx), name = strtok(cmdtext, idx);
if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!");
else if(!IsPlayerCommandLevel(playerid,"addprop")) SendClientMessage(playerid, COLOR_RED, "You don't have access to use this command!");
else if (!strlen(name)) SendClientMessage(playerid,COLOR_GREEN, "USAGE: /c addprop [Price] [Name]");
else {
new Float:X,Float:Y,Float:Z, szMsg[256];
GetPlayerPos(playerid,X,Y,Z);
AddStaticPickup(1,407,X,Y,Z);
format(szMsg,sizeof(szMsg),"Property added! Price:[ $%s ] Name:[ %s ]",tmp,name);
SendClientMessage(playerid, COLOR_GREEN, szMsg);
}
return 1;
}


}
    else if (strcmp(cmd, "!pdistance", true) == 0) {
tmp = strtok(cmdtext, idx);
if (!strlen(tmp)) SendClientMessage(playerid,COLOR_GREEN, "USAGE: !pdistance [PropertyID]");
else {
new contvvb[4][128];
    split(dini_Get("/Pickups/Pickups.ini",tmp), contvvb, ' ');

format(szMsg,sizeof(szMsg),"Distance between:[ %s ] and pickup:[ %d ]: %d meters",gPlayers[playerid],strval(tmp),GetDistance(playerid,floatstr(contvvb[1]),floatstr(contvvb[2]),floatstr(contvvb[3])));
SendClientMessageToAll(BLUE, szMsg);
}
return 1;
    }


LoadPickups();

public PlayerPropDistance(playerid,propid[],distance)
{
new as[4][128];
    split(dini_Get("/Pickups/Pickups.ini",propid), as, ' ');

return (GetDistance(playerid,floatstr(as[1]),floatstr(as[2]),floatstr(as[3])) >= distance) ? false : true;
}



public LoadPickups()
{
print("Loading pickups, please wait...");
new PU;
if(!dini_Exists(Pickups)) return -1;
new data[4][256];
for (PU=1; PU<=250; PU++) {
new pos[256],fm[3];
format(fm,sizeof(fm),"%d",PU);
pos = dini_Get(Pickups,fm);
if (strlen(pos)) {
split(pos,data,' ');
AddStaticPickup(1,strval(data[0]),floatstr(data[1]),floatstr(data[2]),floatstr(data[3]));
}
}
printf("Pickups Loaded!");
return asp;
}


Okay Now that  The Useless Files are gone lets make the Properties

use /s to get coords and add the first 3 coords [XYZ] in this format on on public OnGameModeInit()
AddStaticPickup(id,type,XYZ COORDS);
well  Its Done But Not Ready to Use
Goto Folder Scriptfiles >Properties>Names //Add The Name    Format: Idofthepickup)= Vice villa
Goto Folder Scriptfiles >Properties>Owners //Add The Owners"           " Format:(Idofthepickup)=Ben
Goto Folder Scriptfiles >Properties>Prices //Add The Price "            "Format:(Idofthepickup)=10001
Goto Folder Scriptfiles >Properties>Share//Add The Share "            "Format:Idofthepickup)=yazeen

If u dont have any one Owner or share Leave it in this format:
(Idofthepickup)=None
example 1=none

And Compile and Ready To use!!!
OMG my hand aches lol Hope it helps and if u have Doubt ask me in Yahoo


#153
Quote from: Robd on March 26, 2011, 12:10:39 AM
Shouldn't this be in showroom?
"                                  "
#154
ShowRoom (pawn) / Re: Some usefull functions
March 26, 2011, 04:12:47 AM
Quote from: BIG[H] on March 25, 2011, 05:25:36 PM
xD ! its easy you donot need to make MaxPlayers etc just
new fuckmydick = AllPlayers();
SetPlayerHealth(fuckmydick,100);
You are right
#155
Quote from: Gamer on March 25, 2011, 07:37:12 PM
Quote from: Skirmant on March 25, 2011, 09:20:14 AM
Quote from: yazeen on March 25, 2011, 09:09:38 AM
Hey Kid Uploading Hax here will get u in serous ban. Remove this topic before admin remove u

These are not hax. This is a newbie script that sets your HP to 100 every 0.1 secs. I would call it god mode instead.


ENGLISH: Friends forgive the faults, arrange the command and the link and now it works of marvel
ESPAÑOL: disculpen las fallas amigos, arregle el comando y el link y ahora funciona de maravilla

Ok Kid i thought its a hax mod
#156
Tutorials / Re: Started A Video Tutorial BY BIG[H]
March 26, 2011, 04:04:53 AM
Quote from: BIG[H] on March 25, 2011, 05:24:12 PM
@Dawood NO SPAM
@yazeen i will make more its only start i will make it better!

Good
Tell me when its able to see clearly Cheesy ;D
#157
Tutorials / Re: Started A Video Tutorial BY BIG[H]
March 25, 2011, 02:37:11 PM
Quote from: BIG[H] on March 25, 2011, 01:51:21 PM
Watch in 480p!

I tried the vid BTF i cant understant a shit which u type using // blablabla 
:P Please Zoom in so people can watch it
#158
ShowRoom (pawn) / Re: Some usefull functions
March 25, 2011, 02:34:08 PM
Quote from: BIG[H] on March 25, 2011, 01:55:13 PM
Simple But UseFull Function xD
public AllPlayers()
{
    for(new i = 0; i <= MAX_PLAYERS; i++) if(IsPlayerConnected(i) == 1)
        return i;
}

it  can be used in Freezeall and healall etc a short form of Script!
example :
stock FreezeAll()
{
new i = AllPlayers();
TogglePlayerControllable(i,0);
Plrinfo[i][adminfreezed] = 1;
}

This Script Never Fails!

lol u just added  AllPlayers()
:P
#159
ShowRoom (pawn) / Re: BLACK PANTHER v 5
March 25, 2011, 12:04:13 PM
#160
Hey Kid Uploading Hax here will get u in serous ban. Remove this topic before admin remove u
#161
mIRC/pawn Scripting / Re: Help needed please
March 24, 2011, 03:46:46 PM
Quote from: cycu on March 24, 2011, 03:37:41 PM
There can be some typos in this, done really quickly.

http://pastebin.com/vSXv1hqc

Now if you want to make it even cooler add another timer which will check if the player is in the radius of the bomb site, which will prevent from typing /c defuse and letting player to defuse bomb anywhere he wants.

I hope this helped ;).

thx man It helped
#162
Support / Re: Radio station in india dont work?
March 24, 2011, 02:55:22 PM
Can u tell me When will 0.4 vcmp will release i was ur Beta Saw test its cool and im so Hurry to get it
Hope it releases soon and best of luck in making it :D
#163
Support / Re: Radio station in india dont work?
March 24, 2011, 02:54:04 PM
Quote from: [AoD]NC on March 24, 2011, 02:51:44 PM
Then we are finally home :).

Delete all ADF files from VC\Audio. Play the game from CD2.

If still the same, the easiest way to play a radio station will be to find an complied MP3 file and using the converter, make it as a radio station file. VCS radio station are at gtainside.de

Thx a lot!!!!
#164
mIRC/pawn Scripting / Re: here help me
March 24, 2011, 02:44:24 PM
Quote from: Aldo on February 14, 2011, 02:11:37 PM
Quote from: yazeen on February 14, 2011, 01:40:40 PM
LOL if u mean /c tban is temporary ban there is no such thing just ban and after the time to unban just remove the banned name from the 'banlist' file. i dont know subnet ban and its to hard ask shadow or aXXo  ill help you with slap here is code


   }
   else if (strcmp(cmd, "slap", true) == 0) {
      new reason[256], snick[256], plr, health[256], szMsg[256];
      tmp = strtok(cmdtext, idx),snick = strtok(cmdtext, idx), plr = FindPlayerIDFromString(snick), health = strtok(cmdtext, idx);
      else if (!strlen(health)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c slap [Nick/ID] [health] [Reason]");
        else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
      else {
         format(szMsg,sizeof(szMsg),"Admin %s slapped: %s's hp to :[ %d% ]",gPlayers[playerid],gPlayers[plr],strval(health,cmdtext[strlen(tmp)+6]));
         SendClientMessageToAll(COLOR_GREEN,szMsg);
         SetPlayerHealth(plr,strval(health));
      }
      return 1;


did this without compiling so if u find error plse say to me  ::) 8)

There is tempban command and it has to be custom made

aXXo and me are the only ones with those commands as I know (Pawno)

U use setdate settime etc???
#165
Support / Re: Radio station in india dont work?
March 24, 2011, 10:51:23 AM
Its Working but Crashes At Last of the song