Where am I suppose to put this script?
#1

I want this command added to my server but i do not know where to paste it?
What name do I put it under. For example do I put it under gamemodeinit or something?
Where?

GivePlayerWeapon(playerid, 26, 500); //Give playerid sawnoff shotgun with 500 ammo
Reply
#2

Wut?
Do you want to create a pickup? Or a command like /sawnoff?
Reply
#3

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{    
    if(!strcmp(cmdtext,"/sawnoff",true)==0 {

        GivePlayerWeapon(playerid, 26, 500); //Give playerid sawnoff shotgun with 500 ammo
        SendClientMessage(playerid,red, "  You recieved 500 ammo of sawnoff");                  
        return 1;
        }
//if is only this command uncomment the line down
//return 0;}
 // if not dont uncomment :P
Reply
#4

Please read the stickies before posting...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)