Minigun - 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: Minigun (
/showthread.php?tid=131022)
Minigun -
Igdirli 76 - 01.03.2010
Hallo People,
I have a problem.
I have scripted a map and when player teleport than i will give the player minigun.
Also i written :
Code:
if(!strcmp(cmdtext, "/minigun"))
{
SetPlayerPos(playerid, 3106.690, 468.840, 36.7495);
SendClientMessage(playerid, 0xDF1818AA , "Minigun Match");
GivePlayerWeapon(playerid, 358, 8000);
return 1;
}
But I have only Desert Eagle
Re: Minigun -
Jefff - 01.03.2010
358 to 38
Re: Minigun -
Igdirli 76 - 01.03.2010
What must i write for :
When player teleport to skroad then the weapons is not available
Re: Minigun -
Jefff - 01.03.2010
Code:
ResetPlayerWeapons(playerid);
Re: Minigun -
Igdirli 76 - 01.03.2010
Who i must write this ?
Unter the teleport code?
Re: Minigun -
Jefff - 01.03.2010
Yes
Code:
if(!strcmp(cmdtext, "/skroad",true))
{
SetPlayerPos(playerid, ...);
ResetPlayerWeapons(playerid);
return 1;
}
Re: Minigun -
Igdirli 76 - 01.03.2010
Ehmm its worng :S
When i entered /minigun than i have no weapons
Re: Minigun -
Jefff - 01.03.2010
Must be if(!strcmp(cmdtext, "/minigun",
true))
Re: Minigun -
bajskorv123 - 01.03.2010
*sigh*
pawn Code:
if(!strcmp(cmdtext, "/minigun", true))
{
SetPlayerPos(playerid, 3106.690, 468.840, 36.7495);
SendClientMessage(playerid, 0xDF1818AA , "Minigun Match");
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 38, 8000);
return 1;
}
Re: Minigun -
BurningSWA - 01.03.2010
Code:
if(!strcmp(cmdtext, "/minigun"))
{
SetPlayerPos(playerid, 3106.690, 468.840, 36.7495);
SendClientMessage(playerid, 0xDF1818AA , "Minigun Match");
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 8000);
return 1;
}
this will do it
Re: Minigun -
BurningSWA - 01.03.2010
Quote:
Originally Posted by [NWA
Hannes ]
*sigh*
pawn Code:
if(!strcmp(cmdtext, "/minigun", true)) { SetPlayerPos(playerid, 3106.690, 468.840, 36.7495); SendClientMessage(playerid, 0xDF1818AA , "Minigun Match"); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 38, 8000); return 1; }
|
lol XD at the same time
Re: Minigun -
Igdirli 76 - 01.03.2010
WHen i enter /skroad i have the weapons
Re: Minigun -
bajskorv123 - 01.03.2010
Quote:
Originally Posted by Igdirli 76
WHen i enter /skroad i have the weapons
|
Show me the code for your /skroad command and your /minigun command.
Re: Minigun -
Igdirli 76 - 01.03.2010
Here is my pwn file
Re: Minigun -
bajskorv123 - 01.03.2010
You forget to use true after a command.
pawn Code:
if(!strcmp(cmdtext, "/skroad"))
Bad
pawn Code:
if(!strcmp(cmdtext, "/skroad", true))
Good
Attachment
|
|
V
Re: Minigun -
BurningSWA - 01.03.2010
Quote:
Originally Posted by [NWA
Hannes ]
You forget to use true after a command.
pawn Code:
if(!strcmp(cmdtext, "/skroad"))
Bad
pawn Code:
if(!strcmp(cmdtext, "/skroad", true))
Good
Attachment
|
|
V
|
o yhea :P