17.06.2012, 16:10
ONplayerspawn
its not working if i login it still kicks me
pawn Code:
public OnPlayerSpawn(playerid)
{
new englandcp;
new russiancp;
new file[26];
SetPlayerInterior(playerid, 0);
englandcp = CreateDynamicCP(247.9255,1859.3064,14.0840, 2, -1, -1, -1);
russiancp = CreateDynamicCP(-340.0471,1543.2358,75.5625, 2, -1, -1, -1);
if(!dini_Exists(file))
{
SendClientMessage(playerid, -1, "You need to login");
PInfo[playerid][Preg] =1;
PInfo[playerid][Ploged] =0;
PInfo[playerid][Banned] =0;
Kick(playerid);
return 1;
}
return 1;
}