Hallo Community,
undzwar habe ich heute versucht als Scripting anfänger ein kleines Osterei system zu scripten..
naja aufjedenfall könnt ihr mir mal bitte erklären wie man den Befehl nur 1x pro osterei benutzen kann?
und das wenn man /ostern eingiebt das man Random 5000< bekommt ?
code:
if(strcmp(cmd, "/ostern",true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 4.0,1224.06, -2025.89, 64.16))
{
{
if(IsPlayerInRangeOfPoint(playerid, 4.0,1224.06, -2025.89, 64.16))
{
}
else if(IsPlayerInRangeOfPoint(playerid,4.0,1738.20, -1844.62, 12.82))
{
else if(IsPlayerInRangeOfPoint(playerid,4.0,1738.20, -1844.62, 12.82))
{
}
else if(IsPlayerInRangeOfPoint(playerid,4.0,1539.78, -1713.08, 13.06))
{
else if(IsPlayerInRangeOfPoint(playerid,4.0,1539.78, -1713.08, 13.06))
{
}
else if(IsPlayerInRangeOfPoint(playerid,4.0,1241.98, -915.99, 41.96))
{
else if(IsPlayerInRangeOfPoint(playerid,4.0,1241.98, -915.99, 41.96))
{
}
if(IsPlayerInRangeOfPoint(playerid, 4.0,905.86, -1796.91, 13.04))
{
if(IsPlayerInRangeOfPoint(playerid, 4.0,905.86, -1796.91, 13.04))
{
}
else if(IsPlayerInRangeOfPoint(playerid,4.0,1806.19, -2060.74, 14.97))
{
else if(IsPlayerInRangeOfPoint(playerid,4.0,1806.19, -2060.74, 14.97))
{
}
else if(IsPlayerInRangeOfPoint(playerid,4.0,1742.85, -2055.08, 13.02))
{
else if(IsPlayerInRangeOfPoint(playerid,4.0,1742.85, -2055.08, 13.02))
{
}
else if(IsPlayerInRangeOfPoint(playerid,4.0,1910.95, -1775.22, 12.44))
{
else if(IsPlayerInRangeOfPoint(playerid,4.0,1910.95, -1775.22, 12.44))
{
}
if(IsPlayerInRangeOfPoint(playerid, 4.0,1802.49, -1299.80, 12.66))
{
if(IsPlayerInRangeOfPoint(playerid, 4.0,1802.49, -1299.80, 12.66))
{
}
else if(IsPlayerInRangeOfPoint(playerid,4.0,1255.72, -1415.11, 12.64))
{
else if(IsPlayerInRangeOfPoint(playerid,4.0,1255.72, -1415.11, 12.64))
{
}
else if(IsPlayerInRangeOfPoint(playerid,4.0,1802.22, -1598.71, 13.21))
{
else if(IsPlayerInRangeOfPoint(playerid,4.0,1802.22, -1598.71, 13.21))
{
}
else if(IsPlayerInRangeOfPoint(playerid,4.0,2096.88, -1691.78, 12.89))
{
else if(IsPlayerInRangeOfPoint(playerid,4.0,2096.88, -1691.78, 12.89))
{
}
else if(IsPlayerInRangeOfPoint(playerid,4.0,2719.46, -2410.57, 12.78))
{
else if(IsPlayerInRangeOfPoint(playerid,4.0,2719.46, -2410.57, 12.78))
{
}
else if(IsPlayerInRangeOfPoint(playerid,4.0,1953.71, -2178.55, 12.76))
{
else if(IsPlayerInRangeOfPoint(playerid,4.0,1953.71, -2178.55, 12.76))
{
}
else if(IsPlayerInRangeOfPoint(playerid,4.0,1341.31, -963.58, 36.01))
{
else if(IsPlayerInRangeOfPoint(playerid,4.0,1341.31, -963.58, 36.01))
{
}
if(IsPlayerInRangeOfPoint(playerid, 4.0,1005.14, -980.78, 40.96))
{
if(IsPlayerInRangeOfPoint(playerid, 4.0,1005.14, -980.78, 40.96))
{
}
else if(IsPlayerInRangeOfPoint(playerid,4.0,401.57, -1803.26, 7.31))
{
else if(IsPlayerInRangeOfPoint(playerid,4.0,401.57, -1803.26, 7.31))
{
}
else if(IsPlayerInRangeOfPoint(playerid,4.0,154.41, -1941.37, 3.63))
{
else if(IsPlayerInRangeOfPoint(playerid,4.0,154.41, -1941.37, 3.63))
{
}
else if(IsPlayerInRangeOfPoint(playerid,4.0,106.33, -1594.91, 10.36))
{
else if(IsPlayerInRangeOfPoint(playerid,4.0,106.33, -1594.91, 10.36))
{
}
if(IsPlayerInRangeOfPoint(playerid, 4.0,450.12, -1666.75, 24.79))
{
if(IsPlayerInRangeOfPoint(playerid, 4.0,450.12, -1666.75, 24.79))
{
}
else if(IsPlayerInRangeOfPoint(playerid,4.0,430.45, -1506.47, 30.28))
{
else if(IsPlayerInRangeOfPoint(playerid,4.0,430.45, -1506.47, 30.28))
{
}
else if(IsPlayerInRangeOfPoint(playerid,4.0,1369.34, -1859.34, 13.09))
{
else if(IsPlayerInRangeOfPoint(playerid,4.0,1369.34, -1859.34, 13.09))
{
}
else if(IsPlayerInRangeOfPoint(playerid,4.0,1388.74, -1914.93, 17.19))
{
else if(IsPlayerInRangeOfPoint(playerid,4.0,1388.74, -1914.93, 17.19))
{
}
return 1;
}
return 1;
}