Stereo Car HELP! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Stereo Car HELP! (
/showthread.php?tid=144921)
Stereo Car HELP! -
aleancuervo - 29.04.2010
Hello, well i was scripting an Stereo FS to my samp server. But when i try to luch it my server have an error.
So, sum1 could help me with the code? I want to make the next:
When u are in a car use /stereo and a message will apear and say "YourPlayerName turns the stereo on"
Also, you can buy in 24-7 cds and put them into the stereo (( /stereo cd1)) And then the message will say "Yourname put a CD of "X" in the stereo"
Finally /stereo again and a message that say "Yourplayername turns the stereo off"
Thanks before!
Re: Stereo Car HELP! -
-Rebel Son- - 29.04.2010
Why not use a /me command?
Код:
if(!strcmp(cmdtext, "/me", true, 3)) {
if(!cmdtext[3])return SendClientMessage(playerid,COLOR, "usage: /me [message]");
new str[128];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "* %s %s .", str, cmdtext[4]);
SendClientMessageToAll(COLOR, str);
return 1;}
Basicly the same thing, just type /me Puts a CD in the Fuel CD
Re: Stereo Car HELP! -
Steven82 - 29.04.2010
Quote:
Originally Posted by [N
BL!nk ]
Why not use a /me command?
Код:
if(!strcmp(cmdtext, "/me", true, 3)) {
if(!cmdtext[3])return SendClientMessage(playerid,COLOR, "usage: /me [message]");
new str[128];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "* %s %s .", str, cmdtext[4]);
SendClientMessageToAll(COLOR, str);
return 1;}
Basicly the same thing, just type /me Puts a CD in the Fuel CD
|
He want to play GTA SA sounds.....not just /me rp it :P