21.06.2010, 08:31
Thanks, that worked.. and while we are at it, I get a tag mismatch now.
pawn Code:
if(strcmp(cmd, "/searchshoe", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 15, -437.0859,850.9317,1.3435))
{
new shoe = random(2)+1;
if(shoe == 1)
{
ShoeInfo[playerid][pShoe] = 1;
PlayerActionMessage(playerid,15.0,"starts looking for a shoe.");
}
else
{
new healthhh;
GetPlayerHealth(playerid, healthhh),SetPlayerHealth(playerid, healthhh-10);
}
}
return 1;
}