05.06.2012, 16:48
I want to know how to disable the "Spawn" button when the player is watching the tutorial.
Код:
if(PInfo[playerid][Tutorial]==0)
if(PInfo[playerid][Tutorial]==0)
stock Login(playerid,key[])
{
new file[64];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(file,sizeof(file),"/users/%s.txt",name);
if(!strcmp(key,dini_Get(file,"password"),true))
{
SendClientMessage(playerid,RED,"Logged in!");
SpawnPlayer(playerid);// here it is...
LoadAcc(playerid);
return 1;
}
else
{
// bla bla bla retype pass...
return 1;
}
}