cawte zrobim vam povolanie....
no takze hore
no takze hore
- kód:
new povolanie[MAX_PLAYERS];
new pick;
- kód:
pick = CreatePick(pickupid,1,x,y,z,virtual world);
- kód:
if(pickupid == pick){
ShowPlayerDialog(playerid,iddialogu,DIALOG_STYLE_MSGBOX,"povolanie","chces sa zamestnat ako povolanie???","zamestnat","nic");
}
- kód:
if(dialogid == 3)
{
if(response == 1)//ak vybere zamestnat
{
if(povolanie[playerid] == 1) return SendClientMessage(playerid,COLOR_CERVENA,"uz si zamestnani ako povolanie");
povolanie[playerid] = 1; //nastavi mu povolanie
SetPlayerSkin(playerid,skinid);//da mu skin
GivePlayerWeapon(playerid,weapoid,ammo);//da mu zbran
SetPlayerColor(playerid,COLOR_SVMODRA);//da mu farbu modra
}
}
- kód:
namiesto:
povolanie[playerid] = 1;
date:
povolanie[playerid] = 2;
- kód:
if(povolanie[playerid] != 1) return SendClientMessage(playerid,COLOR_CERVENA,"niesi povolanie");