Jump to content

TUT prikaz pro zbrane


break

Recommended Posts

do: public OnPlayerCommandText(playerid, cmdtext[]

 

 

if(strcmp(cmd, "/zbrane", true) == 0){   //jakym prikazem chces aby to byly zbrane
if(GetPlayerMoney(playerid)> 99999){ //penize nastav kolik chces ale jen odecti jedno cislo
SendClientMessage(playerid,COLOR_ORANGE,"Máš málo peněz"); //tady co ti to napise kdyz nemas many
}else{
GivePlayerWeapon(playerid,22,9999);    //tady si nastav id zbrane a naboje
GivePlayerWeapon(playerid,26,9999);    //tady si nastav id zbrane a naboje
GivePlayerWeapon(playerid,29,9999);   //tady si nastav id zbrane a naboje
GivePlayerWeapon(playerid,31,9999);   //tady si nastav id zbrane a naboje
GivePlayerWeapon(playerid,34,9999);  //tady si nastav id zbrane a naboje
GivePlayerMoney(playerid,-100000); //kolik ti to odecte penez
SendClientMessage(playerid,COLOR_TVOJE BARVA,"Dostal jsi výbavu zbraní"); //sem dej to co chces aby se napsalo kdyz das prikaz
return 1;
}

 

no tak snad jsem lamam pomohl trochu

 

EDIT BY Chytrak : http://weedarr.wikidot.com/gunlist

Link to comment
Share on other sites

lol toto bez idcek atd je na nic a v cmd je to taky na nic a to že tam dáš toto

if(GetPlayerMoney(playerid)> 99999

tak to je blbost to musí mít přesně 99999 takto to je spravně a ještě to není u končené středníkem :p:p

if(GetPlayerMoney(playerid,>=99999);

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...