Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:thachdau(playerid, params[])
- {
- new string[128], giveplayerid, theloai, price;
- if(sscanf(params, "u", giveplayerid, theloai, price)) return SendClientMessageEx(playerid, COLOR_GREY, "SU DUNG: /thachdau [playerid] [dausung/duaxe] [price]");
- if(price < 1001 || price > 100000) return SendClientMessageEx(playerid, COLOR_GREY, "Tien thach dau can phai tren 1.001$ va duoi 100.000$");
- else if(strcmp(theloai,"dausung",true) == 0)
- {
- Loimoithachdau[giveplayerid] = playerid;
- Giatienthachdau[giveplayerid] = price;
- Theloaithachdau[giveplayerid] = 1;
- format(string, sizeof(string), "[!] Ban da gui loi moi thach dau dau sung den %s voi gia %s", GetPlayerNameEx(giveplayerid), number_format(price));
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s da gui loi moi thach dau dau sung cho ban voi khoan cuoc la %s. Hay nhan '/chapnhan thachdau' de phan hoi lai nhe", number_format(price), GetPlayerNameEx(giveplayerid));
- SendClientMessageEx(giveplayerid, COLOR_LIGHTBLUE, string);
- }
- else if(strcmp(theloai,"duaxe",true) == 0)
- {
- Loimoithachdau[giveplayerid] = playerid;
- Giatienthachdau[giveplayerid] = price;
- Theloaithachdau[giveplayerid] = 2;
- format(string, sizeof(string), "[!] Ban da gui loi moi thach dau dua xe den %s voi gia %s", GetPlayerNameEx(giveplayerid), number_format(price));
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s da gui loi moi thach dau dua xe cho ban voi khoan cuoc la %s. Hay nhan '/chapnhan thachdau' de phan hoi lai nhe", number_format(price), GetPlayerNameEx(giveplayerid));
- SendClientMessageEx(giveplayerid, COLOR_LIGHTBLUE, string);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement