DELETE PLEASE - 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: DELETE PLEASE (
/showthread.php?tid=122478)
DELETE PLEASE -
JoeDaDude - 22.01.2010
DELETE PLEASE
Re: How would i do this? -
deather - 22.01.2010
Why do you start two topics for the same scripts
Re: How would i do this? -
JoeDaDude - 22.01.2010
Its a different one,
Ones a filterscript,
Anothers my gamemode,
And it has different code,
And different problems,
So technically this topic is made for this line:
pawn Код:
else if(IsACopCar(vehicleid)) return SendClientMessage(playerid, COLOR_RED, "You need to be in a cop car");
But you need to see this bit:
pawn Код:
new vehicleid = GetPlayerVehicleID(playerid);
else if(IsACopCar(vehicleid)) return SendClientMessage(playerid, COLOR_RED, "You need to be in a cop car");
else if(GetPlayerTeam(playerid) == 1) return SendClientMessage(playerid, COLOR_RED, "You're not a cop")
else
{
I dont know how to space them into 2 sections otherwise i get errors, So i need a fix
Re: How would i do this? -
[HiC]TheKiller - 22.01.2010
pawn Код:
if(IsACopCar(vehicleid)) return SendClientMessage(playerid, COLOR_RED, "You need to be in a cop car");
Re: How would i do this? -
JoeDaDude - 22.01.2010
Conflicts with:
pawn Код:
if(sscanf(params, "s", message))
{
SendClientMessage(playerid, COLOR_RED, "Usage: /megaphone [message]");
}
Re: How would i do this? -
RyDeR` - 22.01.2010
It's time to realy learn pawn language.
dcmd_megaphone(playerid, params[])
{
new
string[128],
pName[MAX_PLAYER_NAME];
if(!strlen(params)) return SendClientMessage(playerid, COLOR, "/megaphone [message]");
GetPlayerName(playerid, pName, sizeof pName);
format(string, sizeof string, ">>Megaphone [Officer %s]: >>%s!!!", pName);
SendClientMessageToAll(COLOR, string);
return 1;
}
You can edit the rest by urself.
Re: How would i do this? -
JoeDaDude - 22.01.2010
Quote:
Originally Posted by » RэРиR «
It's time to realy learn pawn language.
dcmd_megaphone(playerid, params[])
{
new
string[128],
pName[MAX_PLAYER_NAME];
if(!strlen(params)) return SendClientMessage(playerid, COLOR, "/megaphone [message]");
GetPlayerName(playerid, pName, sizeof pName);
format(string, sizeof string, ">>Megaphone [Officer %s]: >>%s!!!", pName);
SendClientMessageToAll(COLOR, string);
return 1;
}
You can edit the rest by urself.
|
I belive im already using a code you gave me,
Ive just need to know what code to use,
When adding so only Team 1 can use it, And u gotta be in a copcar to use it