Minigun
#1

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
Reply
#2

358 to 38
Reply
#3

What must i write for :
When player teleport to skroad then the weapons is not available
Reply
#4

Code:
ResetPlayerWeapons(playerid);
Reply
#5

Who i must write this ?
Unter the teleport code?
Reply
#6

Yes
Code:
if(!strcmp(cmdtext, "/skroad",true))
  {
    SetPlayerPos(playerid, ...);
    ResetPlayerWeapons(playerid);
    return 1;
  }
Reply
#7

Ehmm its worng :S
When i entered /minigun than i have no weapons
Reply
#8

Must be if(!strcmp(cmdtext, "/minigun",true))
Reply
#9

*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;
}
Reply
#10

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
Reply
#11

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
Reply
#12

WHen i enter /skroad i have the weapons
Reply
#13

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.
Reply
#14

Here is my pwn file
Reply
#15

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
Reply
#16

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)