License [help] -
Joruz_Tellino - 12.07.2009
i have gf but i dont want to players need to go to the driving school
so im trying to make a command like /getlicense and when u use /getlicense u need to pay $5000
Can somebody help me making this command?
Solved
thanks, MenaceX^
Re: GF License [help] -
MenaceX^ - 12.07.2009
You should've read forum rules.
Post this in the GF topic.
Though I will help here disposable even though it's regrading to GF.
pawn Код:
if(!strcmp(cmd,"/getlicense",true))
{
if(PlayerInfo[playerid][pLicense]) return SendClientMessage(playerid,color,"You already have a license.");
if(GetPlayerMoney(playerid)<5000) return SendClientMessage(playerid,color,"You don't have enough money, a license costs 5,000$.");
GiveMoney(playerid,-5000);
PlayerInfo[playerid][pLicense]=1;
SendClientMessage(playerid,color,"You've bought a license for 5,000$.");
return 1;
}
Not sure about the pLicense, change it to what it supposes to be.
Re: GF License [help] -
Joruz_Tellino - 12.07.2009
In GF topic nobody wants to help
Re: GF License [help] -
Joruz_Tellino - 12.07.2009
W00t tanks
Re: GF License [help] -
MenaceX^ - 12.07.2009
You're welcome, just read forum rules for the next
Re: GF License [help] -
Joruz_Tellino - 12.07.2009
C:\Program Files\samp-server\WC-RP\gamemodes\gf.pwn(846
![Cool](images/smilies/cool.gif)
: warning 217: loose indentation
C:\Program Files\samp-server\WC-RP\gamemodes\gf.pwn(8470) : error 017: undefined symbol "pLicense"
C:\Program Files\samp-server\WC-RP\gamemodes\gf.pwn(8470) : error 017: undefined symbol "color"
C:\Program Files\samp-server\WC-RP\gamemodes\gf.pwn(8471) : error 017: undefined symbol "color"
C:\Program Files\samp-server\WC-RP\gamemodes\gf.pwn(8472) : error 017: undefined symbol "GiveMoney"
C:\Program Files\samp-server\WC-RP\gamemodes\gf.pwn(8473) : error 017: undefined symbol "pLicense"
C:\Program Files\samp-server\WC-RP\gamemodes\gf.pwn(8474) : error 017: undefined symbol "color"
C:\Program Files\samp-server\WC-RP\gamemodes\gf.pwn(847
![Cool](images/smilies/cool.gif)
: warning 217: loose indentation
C:\Program Files\samp-server\WC-RP\gamemodes\gf.pwn(26147) : warning 203: symbol is never used: "gRandomPlayerSpawns"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
6 Errors.
Re: GF License [help] -
Joruz_Tellino - 12.07.2009
Quote:
Originally Posted by Joruz_Tellino
C:\Program Files\samp-server\WC-RP\gamemodes\gf.pwn(846 ![Cool](images/smilies/cool.gif) : warning 217: loose indentation
C:\Program Files\samp-server\WC-RP\gamemodes\gf.pwn(8470) : error 017: undefined symbol "pLicense"
C:\Program Files\samp-server\WC-RP\gamemodes\gf.pwn(8470) : error 017: undefined symbol "color"
C:\Program Files\samp-server\WC-RP\gamemodes\gf.pwn(8471) : error 017: undefined symbol "color"
C:\Program Files\samp-server\WC-RP\gamemodes\gf.pwn(8472) : error 017: undefined symbol "GiveMoney"
C:\Program Files\samp-server\WC-RP\gamemodes\gf.pwn(8473) : error 017: undefined symbol "pLicense"
C:\Program Files\samp-server\WC-RP\gamemodes\gf.pwn(8474) : error 017: undefined symbol "color"
C:\Program Files\samp-server\WC-RP\gamemodes\gf.pwn(847 ![Cool](images/smilies/cool.gif) : warning 217: loose indentation
C:\Program Files\samp-server\WC-RP\gamemodes\gf.pwn(26147) : warning 203: symbol is never used: "gRandomPlayerSpawns"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
6 Errors.
|
Oh yeah its oke now changed color and pLicense
Re: GF License [help] -
Joruz_Tellino - 12.07.2009
Quote:
Not sure about the pLicense, change it to what it supposes to be.
|
its pCarLic
so if anyone needs this the code is
pawn Код:
if(!strcmp(cmd,"/getlicense",true))
{
if(PlayerInfo[playerid][pCarLic]) return SendClientMessage(playerid, COLOR_RED, "You already have a license.");
if(GetPlayerMoney(playerid)<5000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money, a license costs 5,000$.");
GivePlayerMoney(playerid,-5000);
PlayerInfo[playerid][pCarLic]=1;
SendClientMessage(playerid, COLOR_GREEN, "You've bought a license for 5,000$.");
return 1;
}