some qustions
#1

I will ask you guys some questions

how to make teams that only such member of that team can open the gate


how to make a command that can be used only within a zone
Reply
#2

add this up of your command
pawn Код:
if GetPlayerTeam(playerid) == /*team id*/ )
Reply
#3

thx but I have more question:
How to change spawn place?
Reply
#4

pawn Код:
public OnPlayerSpawn(playerid)
{
if(GetPlayerTeam(playerid) == 0)
{

}
if(GetPlayerTeam(playerid == 1)
{

}
return 1;
}
Sorry for no tabs, kinda busy
Reply
#5

add under onplayerspawn
pawn Код:
if (GetPlayerSkin(playerid) == /*skinid*/) {
SetPlayerPos(playerid, /*XYZ Co-Ords*/);
//And So on...
Reply
#6

oke Im new so dont know many things
Reply
#7

but again error about it

E:\SErver\gamemodes\SFRJ.pwn(69) : error 035: argument type mismatch (argument 2)
E:\SErver\gamemodes\SFRJ.pwn(70) : error 035: argument type mismatch (argument 2)
E:\SErver\gamemodes\SFRJ.pwn(77) : error 001: expected token: ")", but found "{"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Reply
#8

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(GetPlayerTeam(playerid) == 0)
    {

    }
    if(GetPlayerTeam(playerid) == 1)
    {

    }
    return 1;
}
Forgot a " ) ", fixed
Reply
#9

I highly suggestyou learn the simple syntax of pawn coding. You'll have a hard time making scripts if you copy and paste everything. Also I believe SetPlayerPos will be ineffective under OnPlayerSpawn, should place it under OnPlayerStateChange if player state== PLAYER_STATE_SPAWNED
Reply
#10

Quote:
Originally Posted by SilentHuntR
Посмотреть сообщение
I highly suggestyou learn the simple syntax of pawn coding. You'll have a hard time making scripts if you copy and paste everything. Also I believe SetPlayerPos will be ineffective under OnPlayerSpawn, should place it under OnPlayerStateChange if player state== PLAYER_STATE_SPAWNED
++;

Never getting problems with the OnPlayerSpawn callback, although, not yet
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)