20.12.2012, 15:31
#include <a_samp>
new bool:tikrinu[MAX_PLAYERS];
#define GREEN 0x00C2ECFF
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/tikrinu", cmdtext, true, 10) == 0)
{
if(tikrinu[playerid] == true){
SendClientMessage(playerid, GREEN,"in bool");}
else if(tikrinu[playerid] == false){
SendClientMessage(playerid, GREEN,"not in bool");}
return 1;
}
if (strcmp("/inbool", cmdtext, true, 10) == 0)
{
tikrinu[playerid] = true;
return 1;
}
if (strcmp("/outbool", cmdtext, true, 10) == 0)
{
tikrinu[playerid] = false;
return 1;
}
return 0;
}
and still server saying that i'am in bool if I type /outbool cmd..
new bool:tikrinu[MAX_PLAYERS];
#define GREEN 0x00C2ECFF
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/tikrinu", cmdtext, true, 10) == 0)
{
if(tikrinu[playerid] == true){
SendClientMessage(playerid, GREEN,"in bool");}
else if(tikrinu[playerid] == false){
SendClientMessage(playerid, GREEN,"not in bool");}
return 1;
}
if (strcmp("/inbool", cmdtext, true, 10) == 0)
{
tikrinu[playerid] = true;
return 1;
}
if (strcmp("/outbool", cmdtext, true, 10) == 0)
{
tikrinu[playerid] = false;
return 1;
}
return 0;
}
and still server saying that i'am in bool if I type /outbool cmd..