Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <dutils>
- public OnFilterScriptInit()
- {
- printf("Teste de soundIDs carregado!");
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new cmd[256];
- new idx;
- cmd = strtok(cmdtext, idx);
- if(!strcmp(cmd, "/som", true))
- {
- new tmp[256];
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))SendClientMessage(playerid, 0xFFFFFFAA, " /som [soundid]");
- if(strval(tmp) >= 1000 && strval(tmp) <= 1200)
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- PlayerPlaySound(playerid, strval(tmp), x, y, z);
- }
- return 1;
- }
- if(!strcmp(cmdtext, "/parar", true))return PlayerPlaySound(playerid, 1184, 0.0, 0.0, 0.0);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment