CMD:me(playerid, params[]){ new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z);new mesg[128],strin[128];if(sscanf(params,\"s[128]\",mesg)) return SendClientMessage(playerid,0xFF0000FF,\"Használat: /me [cselekvés]\");if(IsPlayerInRangeOfPoint(playerid, 7, x, y, z)){format(strin,sizeof(strin),\" %s: %s\",UnderscoreToSpaceName(playerid),mesg);SendClientMessage(playerid,0xc4ff00AA,strin);SetPlayerChatBubble(playerid, strin, 0xc4ff00AA, 7.0, 10000);}return 1;}stock UnderscoreToSpaceName(playerid){ new Name0[MAX_PLAYER_NAME]; if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, Name0, sizeof(Name0)); } else { Name0 = \"Disconnected/Nothing\"; } for(new name0 = 0; name0 < MAX_PLAYER_NAME; name0++) if(Name0[name0] == \'_\') Name0[name0] = \' \'; return Name0;}
if(IsPlayerInAnyVehicle(playerid)) return ClearAnimations(playerid);
Arra is figyeljetek, hogy animban se legyen ilyenkor, mert akkor pl ha ül az illetõ, és elkezd beszélni, megszakítja az aktuális animot és bevágja beszélõsbe. Kellemetlen tud lenni.
CMD:me(playerid, params[]){ new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); new mesg[128],strin[128]; if(sscanf(params,\"s[128]\",mesg)) return SendClientMessage(playerid,0xFF0000FF,\"Használat: /me [cselekvés]\"); if(IsPlayerInRangeOfPoint(playerid, 7, x, y, z)) { format(strin,sizeof(strin),\" %s: %s\",UnderscoreToSpaceName(playerid),mesg); SendClientMessage(playerid,0xc4ff00AA,strin); SetPlayerChatBubble(playerid, strin, 0xc4ff00AA, 7.0, 10000); } return 1;}stock UnderscoreToSpaceName(playerid){ new Name0[MAX_PLAYER_NAME]; if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, Name0, sizeof(Name0)); } else { Name0 = \"Disconnected/Nothing\"; } for(new name0 = 0; name0 < MAX_PLAYER_NAME; name0++) if(Name0[name0] == \'_\') Name0[name0] = \' \'; return Name0;}
if (strcmp(\"/me\", cmdtext, true, 10) == 0){a parancs belereturn 1; }