[CAMPANIE STAFF]Cautam moderatori si designeri activi!
Welcome to WTFCS Community Forums!
Servere gaming la super-preturi! [HOSTING SERVICE]
-->






[PAWN] Comanda /bonus
Author : mihay111, Category : Tutoriale, 0 Replyes, 670 Views
EVALUATE THIS TOPIC
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
1 Guest(s)
Moderator
     
577
POSTS
452
THREADS
190
REPUTATION
Male
Sex

WtfCs Coins: 0.15[w]

Suit Member
04-18-2020, 03:29 PM
#1
Pentru acest tutorial se foloseste ZCMD. 


Code:
CMD:bonus(playerid, params[])  // comanda ce se scrie pe chat
{
if(PlayerInfo[playerid][pLevel] == 1) // daca nivelul jucatorului e 1
{
  GivePlayerCash(playerid, 100000); // va primi suma aceasta
  PlayerInfo[playerid][pLevel] = 2; // va primi nivel 2
  SendClientMessage(playerid, 0xFF0000, "Ai primit Level UP + 100.000$ !"); // mesajul ce i se va trimite
}
return 1;
}
0xFF0000 e culoarea mesajului, puteti defini si la inceput de GM
Code:
#define COLOR_YELLOW 0xFF0000

 si sa scrieti COLOR_YELLOW in loc de 0x


Forum Jump: