Xmas Gifts [NEED HELP]
#1

Hey all i have my own server; 176.31.69.115:7778 ( Come if you want)
and i have Xmas Tree IN SF! (filterscript) and i need like commands if PlayerIsRangeOfPoint
If you are not on tree its give you;

Thing is that i cant script good! and i am beginner with Pawno!


Код:
SendClientMessage(player,COLOR_RED, "You are not on Xmas Tree");
Commands;

Код:
/getgift

Case 1; Cash 200$
Case 2; Weapons (usualy not like Miniguns)
Case 3; Another Skin (I DONT GEAR WHAT SKIN)
Case 4; Your Own Car
Please Help!
Reply
#2

i use zcmd..so thats what i give you lol
pawn Код:
CMD:getgift(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, radius, x, y, z) //radius that they can type it in
    {
        new rand[5];
        switch(rand)
        {
            case 0: GivePlayerMoney(playerid, 200); //playerid, amount
            case 1: GivePlayerWeapon(playerid, 24, 200); //playerid, gunid, ammo
            case 2: SetPlayerSkin(playerid, 264); //playerid, skinid
            case 3: CreateVehicle(car, X+3,Y,Z, Angle, color1, color2, -1); //car model id, x,y,z,angle,col1,col2,respawn delay
            default: return 1;
        }
    }
    return 1;
}
Reply
#3

Dude i need server scripter! can you be?
Reply
#4

lol nah...

you can also create some dialog lists n stuff to enhance the car & skin gift to make it so they can select what sort of thing they want (like infernus etc)
Reply
#5

SORRY FOR DOUBLE POSTING BUT

I think i know you lol
whats your IG NAME?
Reply
#6

I can be server scripter btw if you want one you should have posted in the Script Request Thread(see from later on)btw i will be scripter...
Reply
#7

Are you Pro Scripter?
If yes then add me in msn; kpuusild@gmail.com
Skype; I dont use
********; Kevin Puusild
*****SERVER INFO*****

Host from; www.volt-host.com(i can make you subaccount)
IP;176.31.69.115:7778
Reply
#8

Quote:
Originally Posted by [ABK]Antonio
Посмотреть сообщение
i use zcmd..so thats what i give you lol
pawn Код:
CMD:getgift(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, radius, x, y, z) //radius that they can type it in
    {
        new rand[5];
        switch(rand)
        {
            case 0: GivePlayerMoney(playerid, 200); //playerid, amount
            case 1: GivePlayerWeapon(playerid, 24, 200); //playerid, gunid, ammo
            case 2: SetPlayerSkin(playerid, 264); //playerid, skinid
            case 3: CreateVehicle(car, X+3,Y,Z, Angle, color1, color2, -1); //car model id, x,y,z,angle,col1,col2,respawn delay
            default: return 1;
        }
    }
    return 1;
}
I got Error;

Код:
gift.TMP(89) : error 029: invalid experession, assumed zero
gift.TMP(89) : error 017: undefined symbel "cmd_getgift"
gift.TMP(89) : error 029: invalid experession, assumed zero
gift.TMP(89) : fatal error 107: too many error messages on one line
HELP ME SOMEONE!
Reply
#9

You need to have #include <zcmd> at the very top of your script for ZCMD to work. If you don't have it... download it.
Reply
#10

I have #include <zcmd>

can you make this do Filterscript or upload it do pastebin


Код:
 CMD:getgift(playerid, params[])
}
    if(IsPlayerInRangeOfPoint(playerid, 100, -1546, 546, 6) //radius that they can type it in
    {
        new rand[5];
        switch(rand)
        {
            case 0: GivePlayerMoney(playerid, 200); //playerid, amount
            case 1: GivePlayerWeapon(playerid, 31, 200); //playerid, gunid, ammo
            case 2: SetPlayerSkin(playerid, 264); //playerid, skinid
            case 3: CreateVehicle(426, -1552,528,6, 100, 1, 1, -1); //car model id, x,y,z,angle,col1,col2,respawn delay
            default: return 1;
        }
    }
    return 1;
}
Reply
#11

I might need your whole script to do it... can you please upload it to pastebin and PM me the link?
Reply
#12

You also need to have file called zcmd in includes folder..if u don't u have to download it
Reply
#13

I have IT!!!!!!!!!!!!!!!!!!!
Reply
#14

CMD:getgift(playerid, params[])
}

change } to {
Reply
#15

I got more errors if i change

{ do } :P

check it

Код:
C:\Users\eesti\Desktop\gift.pwn(88) : error 029: invalid expression, assumed zero
C:\Users\eesti\Desktop\gift.pwn(88 -- 89) : warning 215: expression has no effect
C:\Users\eesti\Desktop\gift.pwn(89) : error 001: expected token: ";", but found "forward"
C:\Users\eesti\Desktop\gift.pwn(90) : error 029: invalid expression, assumed zero
C:\Users\eesti\Desktop\gift.pwn(90 -- 91) : warning 215: expression has no effect
C:\Users\eesti\Desktop\gift.pwn(91) : error 001: expected token: ";", but found "if"
C:\Users\eesti\Desktop\gift.pwn(94) : error 010: invalid function or declaration
C:\Users\eesti\Desktop\gift.pwn(96) : error 010: invalid function or declaration
C:\Users\eesti\Desktop\gift.pwn(97) : error 010: invalid function or declaration
C:\Users\eesti\Desktop\gift.pwn(98) : error 010: invalid function or declaration
C:\Users\eesti\Desktop\gift.pwn(99) : error 010: invalid function or declaration
C:\Users\eesti\Desktop\gift.pwn(100) : error 010: invalid function or declaration
C:\Users\eesti\Desktop\gift.pwn(103) : error 010: invalid function or declaration
C:\Users\eesti\Desktop\gift.pwn(241) : warning 203: symbol is never used: "rand"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


11 Errors.
Lol What else you got
Reply
#16

Quote:
Originally Posted by James Coral
Посмотреть сообщение
I have #include <zcmd>

can you make this do Filterscript or upload it do pastebin


Код:
 CMD:getgift(playerid, params[])
}
    if(IsPlayerInRangeOfPoint(playerid, 100, -1546, 546, 6) //radius that they can type it in
    {
        new rand[5];
        switch(rand)
        {
            case 0: GivePlayerMoney(playerid, 200); //playerid, amount
            case 1: GivePlayerWeapon(playerid, 31, 200); //playerid, gunid, ammo
            case 2: SetPlayerSkin(playerid, 264); //playerid, skinid
            case 3: CreateVehicle(426, -1552,528,6, 100, 1, 1, -1); //car model id, x,y,z,angle,col1,col2,respawn delay
            default: return 1;
        }
    }
    return 1;
}
pawn Код:
CMD:getgift(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 100, -1546, 546, 6)) //radius that they can type it in
    {
        new rand[5];
        switch(rand)
        {
            case 0: GivePlayerMoney(playerid, 200); //playerid, amount
            case 1: GivePlayerWeapon(playerid, 31, 200); //playerid, gunid, ammo
            case 2: SetPlayerSkin(playerid, 264); //playerid, skinid
            case 3: CreateVehicle(426, -1552,528,6, 100, 1, 1, -1); //car model id, x,y,z,angle,col1,col2,respawn delay
            default: return 1;
        }
    }
    return 1;
}
Reply
#17

Now i Got Only 2 Errors;

C:\Users\eesti\Desktop\gift.pwn(89) : error 029: invalid expression, assumed zero
C:\Users\eesti\Desktop\gift.pwn(94) : error 033: array must be indexed (variable "-unknown-")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#18

lol my bad my bad

pawn Код:
CMD:getgift(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 100, -1546, 546, 6)) //radius that they can type it in
    {
        new rand = random(5);
        switch(rand)
        {
            case 0: GivePlayerMoney(playerid, 200); //playerid, amount
            case 1: GivePlayerWeapon(playerid, 31, 200); //playerid, gunid, ammo
            case 2: SetPlayerSkin(playerid, 264); //playerid, skinid
            case 3: CreateVehicle(426, -1552,528,6, 100, 1, 1, -1); //car model id, x,y,z,angle,col1,col2,respawn delay
            default: SendClientMessage(playerid, COLOR_RED,"You get coal chump");
        }
    }
    return 1;
}
Reply
#19

Dame! I Got Error!

C:\Users\eesti\Desktop\gift.pwn(91) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#20

Sorry For Double Posting But I got Error!
Reply


Forum Jump:


Users browsing this thread: 12 Guest(s)