24.02.2014, 17:20
Ok I'm looking for a fix for getting a players surfing object ID when it is dynamic... Here's what I tried...
pawn Код:
public OnPlayerUpdate(playerid)
{
if(EditMode[playerid] == 1)
{
for(new object = 0; object < sizeof(ObjectInfo); object++)
{
if(GetPlayerSurfingObjectID(playerid) == ObjectInfo[object][oObject])
{
CancelEdit(playerid);
GameTextForPlayer(playerid, "~r~OBJECT SURFING DETECTED", 3000, 5);
EditMode[playerid] = 0;
return 1;
}
}
}
return 1;
}