View Single Post
Old 12/05/2014, 12:13 AM   #3
MasonSFW
Huge Clucker
 
MasonSFW's Avatar
 
Join Date: Feb 2014
Location: Thailand
Posts: 302
Reputation: 14
Default Re: Saving players last position

if(!strcmp(hpass, pInfo[playerid][Password], true))
{
mysql_format(mysql, query, sizeof(query), "SELECT * FROM `players` WHERE `Username` = '%e' LIMIT 1", Name[playerid]);
mysql_tquery(mysql, query, "OnAccountLoad", "i", playerid);
pInfo[playerid][LoggedIn] = 1;
SetSpawnInfo(playerid, 0, 240, pInfo[playerid][posX], pInfo[playerid][posY], pInfo[playerid][posZ], SpawnA, 0,0,0,0,0,0);
SpawnPlayer(playerid);
}
__________________
5.175.181.128:7777 - Updated 2015

Join us, Great community .

_________________________________________________
My work:
MasonSFW is offline   Reply With Quote