22.03.2009, 00:01
Do
for every house
pawn Code:
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if(strcmp(PlayerName, "[SAP]Sidhu", true) == 0)
{
SetPlayerPos(playerid,1256.8922,-785.2639,92.0302);
SetPlayerFacingAngle(playerid,268.8916);
SendClientMessage (playerid, green, "Welcome Home, [SAP]Sidhu!");
return 1;
}
else
{
SendClientMessage(playerid, red, "You do not own a house!");
return 1;
}