03.12.2011, 14:53
Hi , i have problem with command /news , i don't know how to make it like i want..
I made 3txd-s , and i want to make command,which will work like this:
example :
and then "Good Afternoon" dissapears , and on his spot comes "my name is Ime_Test" , and when he type it again then "Welcome to Los santos news" goes on 2. positions , and My name is Ime_Test goes on 1. position, I hope you understand me.
Like this :
Код:
CMD:news(playerid, params[]) { if(!PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLider] == 3) return SendClientMessage(playerid,-1,""CRVENA"ERROR: "ZELENA"Niste clan Bahamas Cable Network-a."); if(!IsPlayerInVehicle(playerid, 582)) return *SendClientMessage(playerid,-1,""CRVENA"ERROR: "ZELENA"Niste u vozilu Bahamas Cable Network-a."); * * * *if(sscanf(params, "s[128]", tekst)) return SendClientMessage(playerid, -1, ""CRVENA"Koriљtenje: "ZELENA"/news [tekst]"); * * * *new newtext[128],tekst[128],name[MAX_PLAYER_NAME]; * * * GetPlayerName(playerid, name, MAX_PLAYER_NAME); * * * format(newtext, sizeof(newtext), "Novinar %s: %s", name ,tekst); * * * TextDrawSetString(NEWS0, newtext); * * * TextDrawShowForAll(playerid, NEWS0); * * * return true; }
example :
Quote:
Novinar Ime_Test : Good Afternoon Novinar Ime_Test : My name is Ime_Test Novinar Ime_Test : Welcome to los santos news. |
Like this :
Quote:
Novinar Ime_Test : My name is Ime_Test Novinar Ime_Test : Welcome to los santos news. Novinar Ime_Test : Today the weather is.... |