26.10.2010, 02:28
1. How come when i use it my server crashes (samp-server shuts off)
2. How can i make it so it only adds a clan/changes the clan tag instead of changing the whole name.
2. How can i make it so it only adds a clan/changes the clan tag instead of changing the whole name.
Код:
COMMAND:clantag(playerid, params[], cmdtext[]) { new idx; new string[256]; new tmp[256]; new tmpp[256]; tmpp = strtok(cmdtext, idx); playerid = strval(tmpp); tmp = strtok(cmdtext, idx); if(IsPlayerConnected(playerid)) { SetPlayerName(playerid, tmp); format(string, sizeof(string), "You changed your clantag to [%s]", tmp); SendClientMessage(playerid, blue, string); } return 1; }