09.12.2011, 09:13
Script Request Thread #5
12.12.2011, 19:29
Could someone make a /say command for me please, even with the public OnPlayerCommandText(playerid, cmdtext[]) bit on it, just everything on it so when I compile it, it will 100% work. I'm not being lazy lol it's one of the simplest thing to make but the simplest things bug the shit out of me because I find it's harder to fix .
Anyways, thanks so much for any help I get.
Stivs.
PS
Say = Light Red text sent to the whole server with 'Admin: (text here)'
Anyways, thanks so much for any help I get.
Stivs.
PS
Say = Light Red text sent to the whole server with 'Admin: (text here)'
12.12.2011, 21:30
Quote:
Could someone make a /say command for me please, even with the public OnPlayerCommandText(playerid, cmdtext[]) bit on it, just everything on it so when I compile it, it will 100% work. I'm not being lazy lol it's one of the simplest thing to make but the simplest things bug the shit out of me because I find it's harder to fix .
Anyways, thanks so much for any help I get. Stivs. PS Say = Light Red text sent to the whole server with 'Admin: (text here)' |
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/say", true) == 0)
{
if(!IsPlayerAdmin(playerid))
return 0;
if((cmdtext[4] != ' ') || (cmdtext[5] == 0))
return SendClientMessage(playerid, 0xAFAFAFFF, "Usage:{FFFFFF} /say [text]");
new
str[135];
format(str, sizeof(str), "Admin: %s", cmdtext[4]);
return SendClientMessageToAll(0xFF6347FF, str); // light red
}
return 0;
}
13.12.2011, 15:30
Quote:
Sure.
pawn Код:
|
C:\Users\Stivs\Desktop\Scripting\My Scripts\say.pwn(1) : warning 235: public function lacks forward declaration (symbol "OnPlayerCommandText")
C:\Users\Stivs\Desktop\Scripting\My Scripts\say.pwn(3) : error 017: undefined symbol "strcmp"
C:\Users\Stivs\Desktop\Scripting\My Scripts\say.pwn(5) : error 017: undefined symbol "IsPlayerAdmin"
C:\Users\Stivs\Desktop\Scripting\My Scripts\say.pwn(7) : warning 217: loose indentation
C:\Users\Stivs\Desktop\Scripting\My Scripts\say.pwn( : error 017: undefined symbol "SendClientMessage"
C:\Users\Stivs\Desktop\Scripting\My Scripts\say.pwn(9) : warning 217: loose indentation
C:\Users\Stivs\Desktop\Scripting\My Scripts\say.pwn(11) : warning 217: loose indentation
C:\Users\Stivs\Desktop\Scripting\My Scripts\say.pwn(11) : error 017: undefined symbol "format"
C:\Users\Stivs\Desktop\Scripting\My Scripts\say.pwn(11) : warning 202: number of arguments does not match definition
C:\Users\Stivs\Desktop\Scripting\My Scripts\say.pwn(11) : warning 202: number of arguments does not match definition
C:\Users\Stivs\Desktop\Scripting\My Scripts\say.pwn(11) : warning 202: number of arguments does not match definition
C:\Users\Stivs\Desktop\Scripting\My Scripts\say.pwn(12) : error 017: undefined symbol "SendClientMessageToAll"
C:\Users\Stivs\Desktop\Scripting\My Scripts\say.pwn(14) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
15.12.2011, 14:42
how can i create a function like if a player leaves a point the timer kills
so if i have this
and it goes out of point range it kills the timer ?
so if i have this
pawn Код:
if (IsPlayerInRangeOfPoint (playerid, 10.0, GasStations[i][gx], GasStations[i][gy], GasStations[i][gz])) return 1;
}
16.12.2011, 13:50
Hi,i need a command for example /attach3dtexttoplayer [playerid] [text]..tnx
16.12.2011, 15:53
Hi. I need a couple of commands, quite simple.
Could someone script me a /flip command? (To flip your vehicle, with ZCMD) Also, I could do with a command to change car colours, preferably just /vcol. (i.e. /vcol [Colour 1] [Colour 2]). Thanks in advance!
Oh and this time can I not get a smartass saying that I should know this as I'm a member from 2007, I'm a user not a scripter.
Could someone script me a /flip command? (To flip your vehicle, with ZCMD) Also, I could do with a command to change car colours, preferably just /vcol. (i.e. /vcol [Colour 1] [Colour 2]). Thanks in advance!
Oh and this time can I not get a smartass saying that I should know this as I'm a member from 2007, I'm a user not a scripter.
16.12.2011, 17:52
The /flip command:
That's all I know. I hope this helps.
pawn Код:
if ( strcmp ( cmdtext , "/flip", true)==0)
{
new State=GetPlayerState(playerid);
if (IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
{
new VehicleID, Float:Angle, Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
VehicleID = GetPlayerVehicleID(playerid);
GetVehicleZAngle(VehicleID, Angle);
SetVehiclePos(VehicleID, X, Y, Z);
SetVehicleZAngle(VehicleID, Angle);
SendClientMessage(playerid, 0xFFFF00AA, "Your vehicle has been flipped!");
}
return 1;
}
16.12.2011, 23:17
pawn Код:
CMD:flip(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, 0xFF0000FF, "You are not driving any vehicle.");
new pvID = GetPlayerVehicleID(playerid), Float:angle;
GetVehicleZAngle(pvID, angle);
SetVehicleZAngle(pvID, angle);
SetVehicleAngularVelocity(pvID, 0.0, 0.0, 0.0);
SendClientMessage(playerid, 0x00FF00FF, "You have flipped your vehicle.");
return 1;
}
17.12.2011, 12:17
I converted the first one myself yesterday forgot to write that I did sorry.
Thanks, I still need a /vcol command (that will change car colours like /vcol [car colour 1] [car colour 2]), if anyone can do that for me too. Thanks. ZCMD is preferable.
Thanks, I still need a /vcol command (that will change car colours like /vcol [car colour 1] [car colour 2]), if anyone can do that for me too. Thanks. ZCMD is preferable.
17.12.2011, 12:23
Quote:
I converted the first one myself yesterday forgot to write that I did sorry.
Thanks, I still need a /vcol command (that will change car colours like /vcol [car colour 1] [car colour 2]), if anyone can do that for me too. Thanks. ZCMD is preferable. |
pawn Код:
CMD:vcol(playerid, params[])
{
new vehicleid, color1, color2;
if((vehicleid = GetPlayerVehicleID(playerid))) {
if(sscanf(params, "dd", color1, color2)) return SendClientMessage(playerid, -1, "Usage: /vcol [car colour 1] [car colour 2]");
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, -1, "You' re not driver!");
ChangeVehicleColor(vehicleid, color1, color2);
SendClientMessage(playerid, -1, "Vehicle Colours have been changed!);
return 1;
}
else return SendClientMessage(playerid, -1, "You are not in a vehicle!");
}
17.12.2011, 12:50
doeas anyone know how to make turfs?
17.12.2011, 13:31
These are not called "turfs" they are called "Gang zones". You can create them by using this tool to make them:
https://sampforum.blast.hk/showthread.php?tid=372
https://sampforum.blast.hk/showthread.php?tid=372
17.12.2011, 13:50
Can anyone help me please. People seem to be ignoring my posts.
I need a VIP system with the following commands:
/vips - Displays online VIP's (Admin command).
/vipshop - Displays the special weapons that VIP's can use for example
- Rocket Launcher (5 ammo)
- Minigun (200 ammo)
- Grenades (2 ammo)
/viptime - Displays the amount of VIP days they have left.
/vipskin - Allows the player too choose from a selection of skins.
-If the VIP is on the SWAT team, he / she can't choose a Terrorist skin.
-If the VIP is on the Terrorist team, he / she can't choose a SWAT skin.
/vip(chat) - Allows VIP's to chat privately with other online VIP's.
/hat - Allows a VIP to wear a hat.
/glasses - Allows a VIP to wear glasses.
/viptext - Allows a VIP to have any text above their head.
/viptextoff - Removes the current VIP text they just set.
/vipskinoff - Restores the skin back to the default skin.
Also VIP's get double the amount of cash per kill, planted / defused bomb.
The /vipshop can be used once per round. VIP's will also get a double handed sawn off, double
handed tec 9, double handed colt 45, double handed uzi.
Also make the commands for VIP's only.
I need a VIP system with the following commands:
/vips - Displays online VIP's (Admin command).
/vipshop - Displays the special weapons that VIP's can use for example
- Rocket Launcher (5 ammo)
- Minigun (200 ammo)
- Grenades (2 ammo)
/viptime - Displays the amount of VIP days they have left.
/vipskin - Allows the player too choose from a selection of skins.
-If the VIP is on the SWAT team, he / she can't choose a Terrorist skin.
-If the VIP is on the Terrorist team, he / she can't choose a SWAT skin.
/vip(chat) - Allows VIP's to chat privately with other online VIP's.
/hat - Allows a VIP to wear a hat.
/glasses - Allows a VIP to wear glasses.
/viptext - Allows a VIP to have any text above their head.
/viptextoff - Removes the current VIP text they just set.
/vipskinoff - Restores the skin back to the default skin.
Also VIP's get double the amount of cash per kill, planted / defused bomb.
The /vipshop can be used once per round. VIP's will also get a double handed sawn off, double
handed tec 9, double handed colt 45, double handed uzi.
Also make the commands for VIP's only.
17.12.2011, 15:09
Quote:
pawn Код:
|
@Post above, I'd use the AVS script.
EDIT: Misread, don't use the AVS script. ^^
17.12.2011, 16:10
Quote:
These are not called "turfs" they are called "Gang zones". You can create them by using this tool to make them:
https://sampforum.blast.hk/showthread.php?tid=372 |
17.12.2011, 16:56
18.12.2011, 12:07
Hello,i need script that player can buy rc model and play with it.
02.01.2012, 12:25
Quote:
5 topics in 2-3 years isn't too bad...
About your question: It should be pretty simple actually. All you need is an updating timer (or OnPlayerUpdate) to get the player's distance to the point, then take the percent of that distance, and update the textdraw each percent (or each 5th percent, 10th etc..) So let's say the distance is 100 yards (easiest example) You run 10 yards, and that spot for where are you now moves one "spot" to the right. You could use GetPlayerDistanceToPoint to make this work easily. pawn Code:
pawn Code:
pawn Code:
|
11.02.2012, 12:35
I'm looking for this - https://sampforum.blast.hk/showthread.php?tid=32688
Have anyone link for it? Please help.
Have anyone link for it? Please help.
« Next Oldest | Next Newest »
Users browsing this thread: 9 Guest(s)