23.03.2013, 14:07
Hello. I got a problem in my server.
If I create a boolean for example (top of my script):
and then,
Im using ZCMD so I create the command with their system.
Then I have down at the bottom of my script:
Then after I die it will do:
Now if I die it will say False.
Then when I type "/test" and die it will say True.
But when my friend is logged in and I do "/test" and he dies as well he also gets True.
How can I set "personal" booleans? So only one player will be affected by it.
Please help.
If I create a boolean for example (top of my script):
pawn Код:
new bool:testboolean;
pawn Код:
public OnPlayerConnect(playerid)
{
testboolean = false;
return 1;
}
Then I have down at the bottom of my script:
pawn Код:
CMD:test(playerid, params[])
{
testboolean = true;
return 1;
}
Then after I die it will do:
pawn Код:
public OnPlayerSpawn(playerid)
{
if(testboolean == true)
{
SendClientMessage(playerid, COLOR_RED, "TRUE");
}
else
{
SendClientMessage(playerid, COLOR_RED, "FALSE");
}
return 1;
}
Now if I die it will say False.
Then when I type "/test" and die it will say True.
But when my friend is logged in and I do "/test" and he dies as well he also gets True.
How can I set "personal" booleans? So only one player will be affected by it.
Please help.